X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=cad612266b2f270c0286f31f916ae91703f8cd76;hb=2e1ac38485b9c78890944413cba074474c06bd34;hp=7f0e340a4ad9c622dc6338f47d34a8d502f6d8cc;hpb=2be1e039d9b45b91389a3bfd863b9638109afb82;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; }