Add failing test for bug 14404.
[lhc/web/wiklou.git] / includes / CategoryPage.php
index 0ee9dba..05bc6f3 100644 (file)
@@ -101,9 +101,8 @@ class CategoryViewer {
         * Format the category data list.
         *
         * @return string HTML output
-        * @private
         */
-       function getHTML() {
+       public function getHTML() {
                global $wgOut, $wgCategoryMagicGallery, $wgContLang;
                wfProfileIn( __METHOD__ );
 
@@ -163,9 +162,10 @@ class CategoryViewer {
         */
        function addSubcategoryObject( Category $cat, $sortkey, $pageLength ) {
                // Subcategory; strip the 'Category' namespace from the link text.
+               $title = $cat->getTitle();
                $this->children[] = $this->getSkin()->link(
-                       $cat->getTitle(),
-                       null,
+                       $title,
+                       $title->getText(),
                        array(),
                        array(),
                        array( 'known', 'noclasses' )