From 38355c2d1833b17d215a7875b402b4f44060f611 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sat, 10 Apr 2004 18:03:25 +0000 Subject: [PATCH] no doBlockLevels when parsing included messages --- includes/Parser.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 3bf6485743..c5139143f8 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -92,6 +92,8 @@ class Parser $stripState = NULL; $text = $this->strip( $text, $this->mStripState ); $text = $this->doWikiPass2( $text, $linestart ); + # needs to be called last + $text = $this->doBlockLevels( $text, $linestart ); $text = $this->unstrip( $text, $this->mStripState ); # Clean up special characters $fixtags = array( @@ -502,9 +504,6 @@ class Parser $text .= $this->categoryMagic () ; - # needs to be called last - $text = $this->doBlockLevels( $text, $linestart ); - wfProfileOut( $fname ); return $text; } @@ -1386,7 +1385,7 @@ class Parser # Run full parser on the included text $text = $this->strip( $text, $this->mStripState ); - $text = $this->doWikiPass2( $text, true ); + $text = $this->doWikiPass2( $text, true ); # Add the result to the strip state for re-inclusion after # the rest of the processing -- 2.20.1