X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupWatchlist.php;h=8e4a353df8c4a1d846e26815e5b74c7fb46f9d6e;hb=a3942e029b12d5bcfb1be9c6ae0213899cfad257;hp=5e3aee7402d2ab99aa0d773486f4c7a20f7b0206;hpb=148cc715b44df8ee86b5de0fb5cdd6b44b57f396;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupWatchlist.php b/maintenance/cleanupWatchlist.php index 5e3aee7402..8e4a353df8 100644 --- a/maintenance/cleanupWatchlist.php +++ b/maintenance/cleanupWatchlist.php @@ -29,6 +29,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/cleanupTable.inc'; /** @@ -58,10 +60,9 @@ class CleanupWatchlist extends TableCleanup { } protected function processRow( $row ) { - global $wgContLang; $current = Title::makeTitle( $row->wl_namespace, $row->wl_title ); $display = $current->getPrefixedText(); - $verified = $wgContLang->normalize( $display ); + $verified = MediaWikiServices::getInstance()->getContentLanguage()->normalize( $display ); $title = Title::newFromText( $verified ); if ( $row->wl_user == 0 || is_null( $title ) || !$title->equals( $current ) ) {