http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89525

Revision: 89525
Author:   ialex
Date:     2011-06-05 19:37:08 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Replace the text directly instead of using the StripState object since it will 
be unstripped just after the call replaceTransparentTags(), but left the call 
unstripGeneral() for the benefit of Poem extension that use it to escape the 
<br /> tag

Modified Paths:
--------------
    trunk/phase3/includes/parser/Parser.php

Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php     2011-06-05 19:36:45 UTC (rev 
89524)
+++ trunk/phase3/includes/parser/Parser.php     2011-06-05 19:37:08 UTC (rev 
89525)
@@ -5123,6 +5123,7 @@
                $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 @@
                        } else {
                                $output = $tag;
                        }
-                       $this->mStripState->addGeneral( $marker, $output );
+                       $replacements[$marker] = $output;
                }
-               return $text;
+               return strtr( $text, $replacements );
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to