From: Arne Heizmann Date: Sat, 24 Jul 2004 00:46:27 +0000 (+0000) Subject: Prevent category stuff ("There are 0 articles in this category.") from appearing in X-Git-Tag: 1.5.0alpha1~2613 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=6697d3205339b4e036d47ccb3f76e4f016cc904f;p=lhc%2Fweb%2Fwiklou.git Prevent category stuff ("There are 0 articles in this category.") from appearing in the middle of articles because it is appended when a {{macro}} is expanded. --- diff --git a/includes/Parser.php b/includes/Parser.php index aa3c239724..4a891027d5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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 ; }