Cripple the wiki text stuff for now. It doesn't SEEM dangerous but I haven't tested...
[lhc/web/wiklou.git] / includes / SpecialCategories.php
index 90da68f..8a6dd5f 100644 (file)
@@ -5,11 +5,6 @@
  * @subpackage SpecialPage
  */
 
-/**
- *
- */
-require_once("QueryPage.php");
-
 /**
  *
  * @package MediaWiki
@@ -28,13 +23,14 @@ class CategoriesPage extends QueryPage {
        function isSyndicated() { return false; }
 
        function getPageHeader() {
-               return wfMsgWikiHtml('categoriespagetext') . "<br />\n";
+               return wfMsgWikiHtml( 'categoriespagetext' );
        }
+       
        function getSQL() {
                $NScat = NS_CATEGORY;
                $dbr =& wfGetDB( DB_SLAVE );
                $categorylinks = $dbr->tableName( 'categorylinks' );
-               $s= "SELECT 'Categories' as type, 
+               $s= "SELECT 'Categories' as type,
                                {$NScat} as namespace,
                                cl_to as title,
                                1 as value,
@@ -43,16 +39,18 @@ class CategoriesPage extends QueryPage {
                           GROUP BY cl_to";
                return $s;
        }
-       
+
        function sortDescending() {
                return false;
        }
 
        function formatResult( $skin, $result ) {
+               global $wgLang;
                $title = Title::makeTitle( NS_CATEGORY, $result->title );
                $plink = $skin->makeLinkObj( $title, $title->getText() );
-               $nlinks = wfMsg( 'nlinks', $result->count );
-               return "$plink ($nlinks)";
+               $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
+                       $wgLang->formatNum( $result->count ) );
+               return wfSpecialList($plink, $nlinks);
        }
 }