X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=5602e39646e64eca8e035eb62b9962947a48c3b9;hp=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3 diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index 7f0e340a4a..5602e39646 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -133,7 +133,7 @@ class TitleCleanup extends TableCleanup { * @param Title $title */ protected function moveInconsistentPage( $row, Title $title ) { - if ( $title->exists( Title::GAID_FOR_UPDATE ) + if ( $title->exists( Title::READ_LATEST ) || $title->getInterwiki() || !$title->canExist() ) { @@ -152,7 +152,7 @@ class TitleCleanup extends TableCleanup { # Namespace which no longer exists. Put the page in the main namespace # since we don't have any idea of the old namespace name. See T70501. - if ( !MWNamespace::exists( $ns ) ) { + if ( !MediaWikiServices::getInstance()->getNamespaceInfo()->exists( $ns ) ) { $ns = 0; }