No idea how that got through.
Change-Id: Ic7eebe624434005ff962f19eaa85cdf40e131284
}
function doDBDeletes() {
- global $wgUpdateCompatibleMetadata;
+ global $wgCommentTableSchemaMigrationStage;
$dbw = $this->file->repo->getMasterDB();
list( $oldRels, $deleteCurrent ) = $this->getOldRels();
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__
);