From 7b0686a4082107d9ddcdea6954268e22396049e5 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Sun, 8 Aug 2004 18:05:41 +0000 Subject: [PATCH] (Hopefully) fixing various template bugs once and for all! --- includes/Parser.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index b2573e04ae..9e0f305c9e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -854,6 +854,10 @@ class Parser $text = $this->doMagicLinks( $text ); $text = $this->replaceInternalLinks ( $text ); $text = $this->replaceInternalLinks ( $text ); + + $text = $this->unstrip( $text, $this->mStripState ); + $text = $this->unstripNoWiki( $text, $this->mStripState ); + $text = $this->doTableStuff( $text ); $text = $this->formatHeadings( $text, $isMain ); $sk =& $this->mOptions->getSkin(); @@ -1907,10 +1911,7 @@ class Parser # Add a new element to the templace recursion path $this->mTemplatePath[$part1] = 1; - # Run full parser on the included text - $text = $this->internalParse( $text, $newline, $assocArgs ); - # I replaced the line below with the line above, as it former seems to cause several bugs - #$text = $this->stripParse( $text, $newline, $assocArgs ); + $text = $this->stripParse( $text, $newline, $assocArgs ); # Resume the link cache and register the inclusion as a link if ( !is_null( $title ) ) { -- 2.20.1