X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FMWGrants.php;h=3079c65512fe07c08440fc49f5512c6c3a6d4528;hb=d67121f6d3961bb7dfc44f71e8b5a4b8b9279eef;hp=769e5b4da485e8a7aa4ca52f04e9a47b3f2f1ed8;hpb=7cd7c534f7c86fff63bbd372dc081816df7d65ca;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWGrants.php b/includes/MWGrants.php index 769e5b4da4..3079c65512 100644 --- a/includes/MWGrants.php +++ b/includes/MWGrants.php @@ -193,12 +193,10 @@ class MWGrants { * @return string Wikitext */ public static function getGrantsWikiText( $grantsFilter, $lang = null ) { - global $wgContLang; - if ( is_string( $lang ) ) { $lang = Language::factory( $lang ); } elseif ( $lang === null ) { - $lang = $wgContLang; + $lang = MediaWikiServices::getInstance()->getContentLanguage(); } $s = '';