Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -191,7 +191,6 @@ |
192 | 192 | } |
193 | 193 | |
194 | 194 | static function renderFormInput ( &$parser ) { |
195 | | - global $wgVersion; |
196 | 195 | |
197 | 196 | $params = func_get_args(); |
198 | 197 | array_shift( $params ); // don't need the parser |
— | — | @@ -551,10 +550,17 @@ |
552 | 551 | $inQueryArr = SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr ); |
553 | 552 | break; |
554 | 553 | |
| 554 | + case 'ok text': |
| 555 | + case 'error text': |
| 556 | + // do not parse ok text or error text yet. Will be parsed on api call |
| 557 | + $arr = array( $key => $value ); |
| 558 | + $inQueryArr = SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr ); |
| 559 | + break; |
| 560 | + |
555 | 561 | default : |
556 | 562 | |
557 | | - $value = urlencode( $parser->recursiveTagParse( $value ) ); |
558 | | - parse_str( "$key=$value", $arr ); |
| 563 | + $value = $parser->recursiveTagParse( $value ); |
| 564 | + $arr = array( $key => $value ); |
559 | 565 | $inQueryArr = SFUtils::array_merge_recursive_distinct( $inQueryArr, $arr ); |
560 | 566 | } |
561 | 567 | } |