X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FTagHooksTest.php;h=06da7a53f709964064d8b58b3e7d191675406fab;hb=414215ccac0f3288ccb1a40a5a8e29b9a70f0e89;hp=48312d98f950b7c00e3e6a2887f6f374d2acd585;hpb=bca608592079a5f8697ad35ad3188b62b73859d9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/parser/TagHooksTest.php b/tests/phpunit/includes/parser/TagHooksTest.php index 48312d98f9..06da7a53f7 100644 --- a/tests/phpunit/includes/parser/TagHooksTest.php +++ b/tests/phpunit/includes/parser/TagHooksTest.php @@ -47,8 +47,8 @@ class TagHooksTest extends MediaWikiTestCase { } private function getParserOptions() { - global $wgContLang; - $popt = ParserOptions::newFromUserAndLang( new User, $wgContLang ); + $popt = ParserOptions::newFromUserAndLang( new User, + MediaWikiServices::getInstance()->getContentLanguage() ); return $popt; }