X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=maintenance%2FpreprocessorFuzzTest.php;h=d5d27ad8ce9605aaaef2f05dc63baf2f736d2c68;hb=d79f256590243e52c8bebd3ad635c73b8abb0498;hp=2503ed25e21cbf76a0c6d4a9a3fb7895092185fe;hpb=85ee6b473eac9dee92bf9784c5672864ed760f4f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php index 2503ed25e2..d5d27ad8ce 100644 --- a/maintenance/preprocessorFuzzTest.php +++ b/maintenance/preprocessorFuzzTest.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + $optionsWithoutArgs = [ 'verbose' ]; require_once __DIR__ . '/commandLine.inc'; @@ -123,8 +125,7 @@ class PPFuzzTester { // This resolves a few differences between the old preprocessor and the // XML-based one, which doesn't like illegals and converts line endings. // It's done by the MW UI, so it's a reasonably legitimate thing to do. - global $wgContLang; - $s = $wgContLang->normalize( $s ); + $s = MediaWikiServices::getInstance()->getContentLanguage()->normalize( $s ); return $s; }