Use local context to get message instead of relying on global variables
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 3 Feb 2012 11:19:35 +0000 (11:19 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 3 Feb 2012 11:19:35 +0000 (11:19 +0000)
includes/specials/SpecialWantedcategories.php

index 33e789d..f497e4e 100644 (file)
@@ -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 );
        }
 }