From 553b2964e26a100950736059a0b0fd1605985112 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 3 Feb 2012 11:19:35 +0000 Subject: [PATCH] Use local context to get message instead of relying on global variables --- includes/specials/SpecialWantedcategories.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ); } } -- 2.20.1