Whoops, it's case-sensitive!
[lhc/web/wiklou.git] / includes / SpecialCategories.php
index 7191fe9..ed2259d 100644 (file)
@@ -9,7 +9,7 @@ function wfSpecialCategories() {
 
        $cap = new CategoryPager();
        $wgOut->addHTML( 
-               wfMsgWikiHtml( 'categoriespagetext' ) .
+               wfMsgExt( 'categoriespagetext', array( 'parse' ) ) .
                $cap->getNavigationBar()
                . '<ul>' . $cap->getBody() . '</ul>' .
                $cap->getNavigationBar()
@@ -22,6 +22,7 @@ function wfSpecialCategories() {
  */
 class CategoryPager extends AlphabeticPager {
        function getQueryInfo() {
+               global $wgRequest;
                return array(
                        'tables' => array('categorylinks'),
                        'fields' => array('cl_to','count(*) AS count'),
@@ -53,12 +54,11 @@ class CategoryPager extends AlphabeticPager {
        function formatRow($result) {
                global $wgLang;
                $title = Title::makeTitle( NS_CATEGORY, $result->cl_to );
-               return Xml::tags('li', null,
-                       $this->getSkin()->makeLinkObj( $title, $title->getText() ) . ' (' .
-                       wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
-                               $wgLang->formatNum( $result->count ) ) . ')'
-                       ) . "\n";
+               $titleText = $this->getSkin()->makeLinkObj( $title, htmlspecialchars( $title->getText() ) );
+               $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ),
+                               $wgLang->formatNum( $result->count ) );
+               return Xml::tags('li', null, "$titleText ($count)" ) . "\n";
        }
 }
 
-?>
+