Merge "(bug 37195) Doc fix. $from and $until are arrays since 1.17."
[lhc/web/wiklou.git] / includes / specials / SpecialWantedcategories.php
index 33e789d..0b1fb25 100644 (file)
@@ -37,9 +37,9 @@ class WantedCategoriesPage extends WantedQueryPage {
        function getQueryInfo() {
                return array (
                        'tables' => array ( 'categorylinks', 'page' ),
-                       'fields' => array ( "'" . NS_CATEGORY . "' AS namespace",
-                                       'cl_to AS title',
-                                       'COUNT(*) AS value' ),
+                       'fields' => array ( 'namespace' => NS_CATEGORY,
+                                       'title' => 'cl_to',
+                                       'value' => 'COUNT(*)' ),
                        'conds' => array ( 'page_title IS NULL' ),
                        'options' => array ( 'GROUP BY' => 'cl_to' ),
                        'join_conds' => array ( 'page' => array ( 'LEFT JOIN',
@@ -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 );
        }
 }