X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedcategories.php;h=0b1fb25107c0d80558a16c688a920c4f2b4d5971;hb=c9a87713ac0bb3504f37735b81d4ce25cec4b636;hp=33e789dedd67d818fbcd085016c70bf6aaa7f7c6;hpb=216d661d3b0098b93926b485fb986e66d9cb0bad;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedcategories.php index 33e789dedd..0b1fb25107 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedcategories.php @@ -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 ); } }