(Hopefully) fixing various template bugs once and for all!
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Sun, 8 Aug 2004 18:05:41 +0000 (18:05 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Sun, 8 Aug 2004 18:05:41 +0000 (18:05 +0000)
includes/Parser.php

index b2573e0..9e0f305 100644 (file)
@@ -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 ) ) {