Prevent category stuff ("There are 0 articles in this category.") from appearing in
authorArne Heizmann <timwi@users.mediawiki.org>
Sat, 24 Jul 2004 00:46:27 +0000 (00:46 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Sat, 24 Jul 2004 00:46:27 +0000 (00:46 +0000)
the middle of articles because it is appended when a {{macro}} is expanded.

includes/Parser.php

index aa3c239..4a89102 100644 (file)
@@ -815,7 +815,7 @@ class Parser
                $sk =& $this->mOptions->getSkin();
                $text = $sk->transformContent( $text );
 
-               if ( !isset ( $this->categoryMagicDone ) ) {
+               if ( $isMain && !isset ( $this->categoryMagicDone ) ) {
                        $text .= $this->categoryMagic () ;
                        $this->categoryMagicDone = true ;
                }