X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FMWGrants.php;h=3079c65512fe07c08440fc49f5512c6c3a6d4528;hb=3d758d74956fb52cff50479e3f0f6545850df49d;hp=769e5b4da485e8a7aa4ca52f04e9a47b3f2f1ed8;hpb=750985247e2d36931cfd7001b9123f9ce68e55c6;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 = '';