From 6697d3205339b4e036d47ccb3f76e4f016cc904f Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sat, 24 Jul 2004 00:46:27 +0000 Subject: [PATCH] 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. --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; } -- 2.20.1