From 9626d697f83f70332b6a8d79b02f5e7f5da5c75d Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 17 Sep 2009 15:24:04 +0000 Subject: [PATCH] Fix bug 20688 (Hidden categories still hidden if there are no non-hidden categories and the showhiddencats option is on). Regression in r55573. --- includes/Skin.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 74d9fa071b..42262cd85f 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -895,11 +895,17 @@ END; } function getCategories() { - $catlinks=$this->getCategoryLinks(); + $catlinks = $this->getCategoryLinks(); $classes = 'catlinks'; + + // Check what we're showing + global $wgOut, $wgUser; + $allCats = $wgOut->getCategoryLinks(); + $showHidden = $wgUser->getBoolOption( 'showhiddencats' ) || + $this->mTitle->getNamespace() == NS_CATEGORY; - if( strpos( $catlinks, '