(bug 25512) Make it so that categories listed in the subcategory section of a page...
authorBrian Wolff <bawolff@users.mediawiki.org>
Wed, 8 Dec 2010 16:01:50 +0000 (16:01 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Wed, 8 Dec 2010 16:01:50 +0000 (16:01 +0000)
This was originally caused by r53780. I'm presuming that it was accidental since that revision was about changing how lang converter is called.
Presumably no one noticed this since the bug does not appear if categorytree is installed.

RELEASE-NOTES
includes/CategoryPage.php

index aecca3d..d443da6 100644 (file)
@@ -469,6 +469,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
 * (bug 18372) $wgFileExtensions will now override $wgFileBlacklist 
 * (bug 10871) Javascript and CSS pages in MediaWiki namespace are no longer treated
   as wikitext on preview.
+* (bug 25512) Subcategory list should not include category prefix for members.
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index 5fcad49..05bc6f3 100644 (file)
@@ -162,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' )