https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112643

Revision: 112643
Author:   foxtrott
Date:     2012-02-28 21:13:11 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
bugfix (ok text and error text parsed twice for autoedit); removed unused global

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php

Modified: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php      
2012-02-28 21:12:54 UTC (rev 112642)
+++ trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php      
2012-02-28 21:13:11 UTC (rev 112643)
@@ -191,7 +191,6 @@
        }
 
        static function renderFormInput ( &$parser ) {
-               global $wgVersion;
 
                $params = func_get_args();
                array_shift( $params ); // don't need the parser
@@ -551,10 +550,17 @@
                                        $inQueryArr = 
SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr );
                                        break;
 
+                               case 'ok text':
+                               case 'error text':
+                                       // do not parse ok text or error text 
yet. Will be parsed on api call
+                                       $arr = array( $key => $value );
+                                       $inQueryArr = 
SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr );
+                                       break;
+                               
                                default :
 
-                                       $value = urlencode( 
$parser->recursiveTagParse( $value ) );
-                                       parse_str( "$key=$value", $arr );
+                                       $value = $parser->recursiveTagParse( 
$value );
+                                       $arr = array( $key => $value );
                                        $inQueryArr = 
SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr );
                        }
                }


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to