From 4e1fdac42a41d7373761f0607424b4054f07704a Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Wed, 8 Dec 2010 16:01:50 +0000 Subject: [PATCH] (bug 25512) Make it so that categories listed in the subcategory section of a page aren't prefixed with category: namespace. 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 | 1 + includes/CategoryPage.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index aecca3dd62..d443da6ceb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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. diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 5fcad49ff7..05bc6f3d6d 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -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' ) -- 2.20.1