X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupTitles.php;h=cad612266b2f270c0286f31f916ae91703f8cd76;hb=25ee9366b06a44087e8f0cba1f2b27324259ef52;hp=234e1b1f2a121187c16acd5eed19e3f03ee54e2d;hpb=148cc715b44df8ee86b5de0fb5cdd6b44b57f396;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php index 234e1b1f2a..cad612266b 100644 --- a/maintenance/cleanupTitles.php +++ b/maintenance/cleanupTitles.php @@ -45,9 +45,8 @@ class TitleCleanup extends TableCleanup { * @param object $row */ protected function processRow( $row ) { - global $wgContLang; $display = Title::makeName( $row->page_namespace, $row->page_title ); - $verified = $wgContLang->normalize( $display ); + $verified = MediaWikiServices::getInstance()->getContentLanguage()->normalize( $display ); $title = Title::newFromText( $verified ); if ( !is_null( $title ) @@ -153,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; }