aboutsummaryrefslogtreecommitdiffstats
path: root/includes/MWGrants.php
diff options
context:
space:
mode:
authorAryeh Gregor <ayg@aryeh.name>2018-07-29 15:24:54 +0300
committerKunal Mehta <legoktm@member.fsf.org>2018-08-11 22:44:29 -0600
commit90d4f56fe46140f9e97e2fa72698f98b57447fe5 (patch)
treeaafd71518a89d31a647ae7d4340f1003bc33d3a0 /includes/MWGrants.php
parent8f8851325ece1be57c7cd896db7f65b34fee7a88 (diff)
downloadmediawikicore-90d4f56fe46140f9e97e2fa72698f98b57447fe5.tar.gz
mediawikicore-90d4f56fe46140f9e97e2fa72698f98b57447fe5.zip
Mass conversion of $wgContLang to service
Brought to you by vim macros. Bug: T200246 Change-Id: I79e919f4553e3bd3eb714073fed7a43051b4fb2a
Diffstat (limited to 'includes/MWGrants.php')
-rw-r--r--includes/MWGrants.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/MWGrants.php b/includes/MWGrants.php
index 769e5b4da485..3079c65512fe 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 = '';