X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=5602e39646e64eca8e035eb62b9962947a48c3b9;hb=00e52d96addceb383baa25b9cd5b40b4fa61d9a8;hp=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hpb=4905504faded8f85a9b3d68b27da5c9e2f11bd06;p=lhc%2Fweb%2Fwiklou.git 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; }