Replace the text directly instead of using the StripState object since it will be...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 5 Jun 2011 19:37:08 +0000 (19:37 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 5 Jun 2011 19:37:08 +0000 (19:37 +0000)
includes/parser/Parser.php

index 56b23ef..ff0d936 100644 (file)
@@ -5123,6 +5123,7 @@ class Parser {
                $matches = array();
                $elements = array_keys( $this->mTransparentTagHooks );
                $text = self::extractTagsAndParams( $elements, $text, $matches, $this->mUniqPrefix );
+               $replacements = array();
 
                foreach ( $matches as $marker => $data ) {
                        list( $element, $content, $params, $tag ) = $data;
@@ -5132,9 +5133,9 @@ class Parser {
                        } else {
                                $output = $tag;
                        }
-                       $this->mStripState->addGeneral( $marker, $output );
+                       $replacements[$marker] = $output;
                }
-               return $text;
+               return strtr( $text, $replacements );
        }
 
        /**