From: Brion Vibber Date: Fri, 29 Feb 2008 00:55:45 +0000 (+0000) Subject: * (bug 13174) __HIDDENCAT__ now applies only to category pages X-Git-Tag: 1.31.0-rc.0~49306 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=ea3a20cdd30c78f1133e82f3c7113eb5aeeb406f;p=lhc%2Fweb%2Fwiklou.git * (bug 13174) __HIDDENCAT__ now applies only to category pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 552eefa3fe..6019ed220f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -58,6 +58,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13135) Special:Userrights now passes IDs through form submission to allow functionality on not-quite-right usernames * (bug 12575) Prevent duplicate patrol log entries from being created +* (bug 13174) __HIDDENCAT__ now applies only to category pages === API changes in 1.13 === diff --git a/includes/Parser.php b/includes/Parser.php index c94e5d48af..e21ee65b8d 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3287,7 +3287,7 @@ class Parser if ( isset( $this->mDoubleUnderscores['notoc'] ) && !$this->mForceTocPosition ) { $this->mShowToc = false; } - if ( isset( $this->mDoubleUnderscores['hiddencat'] ) ) { + if ( isset( $this->mDoubleUnderscores['hiddencat'] ) && $this->mTitle->getNamespace() == NS_CATEGORY ) { $this->mOutput->setProperty( 'hiddencat', 'y' ); $containerCategory = Title::makeTitleSafe( NS_CATEGORY, wfMsgForContent( 'hidden-category-category' ) );