From: Brad Jorsch Date: Mon, 23 Oct 2017 16:20:50 +0000 (-0400) Subject: LocalFile: Fix copy-paste error X-Git-Tag: 1.31.0-rc.0~1694 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=919c024f5e9d78c0c0a0ef960776e1079ef78b0c;p=lhc%2Fweb%2Fwiklou.git LocalFile: Fix copy-paste error No idea how that got through. Change-Id: Ic7eebe624434005ff962f19eaa85cdf40e131284 --- 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__ );