Using a better method to get the English language file.
[lhc/web/wiklou.git] / includes / SpecialCategories.php
index 45d266a..89cff20 100644 (file)
@@ -5,11 +5,6 @@
  * @subpackage SpecialPage
  */
 
-/**
- *
- */
-require_once("QueryPage.php");
-
 /**
  *
  * @package MediaWiki
@@ -41,7 +36,7 @@ class CategoriesPage extends QueryPage {
                                1 as value,
                                COUNT(*) as count
                           FROM $categorylinks
-                          GROUP BY cl_to";
+                          GROUP BY 1,2,3,4";
                return $s;
        }
 
@@ -50,9 +45,11 @@ class CategoriesPage extends QueryPage {
        }
 
        function formatResult( $skin, $result ) {
+               global $wgLang;
                $title = Title::makeTitle( NS_CATEGORY, $result->title );
                $plink = $skin->makeLinkObj( $title, $title->getText() );
-               $nlinks = wfMsg( 'nlinks', $result->count );
+               $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
+                       $wgLang->formatNum( $result->count ) );
                return wfSpecialList($plink, $nlinks);
        }
 }