r85154 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85153‎ | r85154 | r85155 >
Date:20:53, 1 April 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
fix to not parse data twice
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutoEditAjaxHandler.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutoEditAjaxHandler.php
@@ -173,7 +173,7 @@
174174 header( "X-Form: " . $formedit -> mForm );
175175 header( "X-Target: " . $formedit -> mTarget );
176176
177 - $msg = $wgParser -> parse( wfMsgReplaceArgs( $this -> mOptions[ 'ok text' ], array( $formedit -> mTarget, $formedit -> mForm ) ), $wgTitle, $wgParser -> getOptions() ) -> getText();
 177+ $msg = $wgParser -> recursiveTagParse( wfMsgReplaceArgs( $this -> mOptions[ 'ok text' ], array( $formedit -> mTarget, $formedit -> mForm ) ) );
178178
179179 $result = new AjaxResponse( $msg );
180180 return $result;
@@ -305,7 +305,7 @@
306306 if ( $key == "query string" ) {
307307 $this -> parseDataFromQueryString( $data, $value, $expand );
308308 } elseif ( $expand ) {
309 - $this -> addToArray( $data, $key, $wgParser -> recursiveTagParse( $value ) );
 309+ $this -> addToArray( $data, $key, $value );
310310 } else {
311311 $this -> addToArray( $data, $key, $value );
312312 }