From 919c024f5e9d78c0c0a0ef960776e1079ef78b0c Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 23 Oct 2017 12:20:50 -0400 Subject: [PATCH] LocalFile: Fix copy-paste error No idea how that got through. Change-Id: Ic7eebe624434005ff962f19eaa85cdf40e131284 --- includes/filerepo/file/LocalFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 410a794cc4..a36bec3cda 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -2463,7 +2463,7 @@ class LocalFileDeleteBatch { } function doDBDeletes() { - global $wgUpdateCompatibleMetadata; + global $wgCommentTableSchemaMigrationStage; $dbw = $this->file->repo->getMasterDB(); list( $oldRels, $deleteCurrent ) = $this->getOldRels(); @@ -2478,7 +2478,7 @@ class LocalFileDeleteBatch { if ( $deleteCurrent ) { $dbw->delete( 'image', [ 'img_name' => $this->file->getName() ], __METHOD__ ); - if ( $wgUpdateCompatibleMetadata > MIGRATION_OLD ) { + if ( $wgCommentTableSchemaMigrationStage > MIGRATION_OLD ) { $dbw->delete( 'image_comment_temp', [ 'imgcomment_name' => $this->file->getName() ], __METHOD__ ); -- 2.20.1