From: Alexandre Emsenhuber Date: Fri, 3 Feb 2012 11:19:35 +0000 (+0000) Subject: Use local context to get message instead of relying on global variables X-Git-Tag: 1.31.0-rc.0~24944 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=553b2964e26a100950736059a0b0fd1605985112;p=lhc%2Fweb%2Fwiklou.git Use local context to get message instead of relying on global variables --- diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedcategories.php index 33e789dedd..f497e4e26b 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedcategories.php @@ -69,9 +69,7 @@ class WantedCategoriesPage extends WantedQueryPage { array( 'broken' ) ); - $lang = $this->getLanguage(); - $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ), - $lang->formatNum( $result->value ) ); - return $lang->specialList( $plink, $nlinks ); + $nlinks = $this->msg( 'nmembers' )->numParams( $result->value )->escaped(); + return $this->getLanguage()->specialList( $plink, $nlinks ); } }