X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FLocalFile.php;h=a36bec3cda37107930186970728622b5e1e96b2c;hp=410a794cc41fa7eba930c0de4330de0dd3f79a95;hb=f73f2b320d8fe1eb03f78671584d455a2ff9f292;hpb=3a79761da37abe0e147e4a5ee61b7ee17ec7efc3 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__ );