X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=cad612266b2f270c0286f31f916ae91703f8cd76;hb=9d37c792b2ee408b6a01b43a1a649e6074c11c34;hp=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hpb=5410cfccce9b0b84bc909506c9b66d3f27d6dba7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index 7f0e340a4a..cad612266b 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -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; }