* (bug 13174) __HIDDENCAT__ now applies only to category pages
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Feb 2008 00:55:45 +0000 (00:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 29 Feb 2008 00:55:45 +0000 (00:55 +0000)
RELEASE-NOTES
includes/Parser.php

index 552eefa..6019ed2 100644 (file)
@@ -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 ===
index c94e5d4..e21ee65 100644 (file)
@@ -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' ) );