Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -348,7 +348,7 @@ |
349 | 349 | // remove the '<nowiki>' tags, leaving us with what we need. |
350 | 350 | $form_def = "__NOEDITSECTION__" . strtr( $form_def, array( '{{{' => '<nowiki>{{{', '}}}' => '}}}</nowiki>' ) ); |
351 | 351 | if ( empty( $wgParser->mOptions ) ) { |
352 | | - $wgParser->mOptions = new ParserOptions(); |
| 352 | + $wgParser -> startExternalParse( $title, ParserOptions::newFromUser($wgUser), Parser::OT_HTML, true ); |
353 | 353 | } |
354 | 354 | |
355 | 355 | // Get the form definition from the cache, if we're using caching and it's |
— | — | @@ -679,7 +679,7 @@ |
680 | 680 | if ( $sub_components[0] == 'input type' ) { |
681 | 681 | $input_type = $sub_components[1]; |
682 | 682 | } elseif ( $sub_components[0] == 'default' ) { |
683 | | - $default_value = $sub_components[1]; |
| 683 | + $default_value = $wgParser -> recursiveTagParse( $sub_components[1] ); |
684 | 684 | } elseif ( $sub_components[0] == 'preload' ) { |
685 | 685 | // free text field has special handling |
686 | 686 | if ( $field_name == 'free text' || $field_name == '<freetext>' ) { |