From 2a34eb40393d93c15e4c3c6e5b7a627fef01bae9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 13 Oct 2005 20:32:42 +0000 Subject: [PATCH] Reverting patch for bug 2257 for now: * No RELEASE-NOTES bullet * No parser test case * Doesn't work for , possibly others --- includes/Parser.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 7736b04d76..8c50a4f251 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -99,7 +99,7 @@ class Parser var $mTagHooks; # Cleared with clearState(): - var $mOutput, $mAutonumber, $mDTopen, $mStripState = array(), $mCurrentParams = array(); + var $mOutput, $mAutonumber, $mDTopen, $mStripState = array(); var $mVariables, $mIncludeCount, $mArgStack, $mLastSection, $mInPre; var $mInterwikiLinkHolders, $mLinkHolders; @@ -141,7 +141,6 @@ class Parser $this->mStripState = array(); $this->mArgStack = array(); $this->mInPre = false; - $this->mCurrentParams = array(); $this->mInterwikiLinkHolders = array( 'texts' => array(), 'titles' => array() @@ -423,7 +422,6 @@ class Parser $text = Parser::extractTagsAndParams( $tag, $text, $ext_content[$tag], $ext_tags[$tag], $ext_params[$tag], $uniq_prefix ); foreach( $ext_content[$tag] as $marker => $content ) { - $content = $this->replaceVariables( $content, $this->mCurrentParams ); $full_tag = $ext_tags[$tag][$marker]; $params = $ext_params[$tag][$marker]; if ( $render ) { @@ -2303,7 +2301,6 @@ class Parser $text = preg_replace( '/.*?<\/noinclude>/s', '', $text ); $text = strtr( $text, array( '' => '' , '' => '' ) ); # Strip ,
, etc.
-				$this->mCurrentParams = $assocArgs;
 				$text = $this->strip( $text, $this->mStripState );
 				$text = Sanitizer::removeHTMLtags( $text, array( &$this, 'replaceVariables' ), $assocArgs );
 			}
-- 
2.20.1