LocalFile: Fix copy-paste error
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Oct 2017 16:20:50 +0000 (12:20 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Oct 2017 16:20:50 +0000 (12:20 -0400)
No idea how that got through.

Change-Id: Ic7eebe624434005ff962f19eaa85cdf40e131284

includes/filerepo/file/LocalFile.php

index 410a794..a36bec3 100644 (file)
@@ -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__
                                );