Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -114,6 +114,7 @@ |
115 | 115 | // in the latter case, it may remain false until close to the end of |
116 | 116 | // the parsing, so we have to assume that it will become a possibility |
117 | 117 | $form_is_partial = false; |
| 118 | + $new_text = ""; |
118 | 119 | |
119 | 120 | // if we have existing content and we're not in an active replacement |
120 | 121 | // situation, preserve the original content. We do this because we want |
— | — | @@ -174,10 +175,9 @@ |
175 | 176 | global $sfgDisableWikiTextParsing; |
176 | 177 | if (! $sfgDisableWikiTextParsing) { |
177 | 178 | $form_def = strtr($form_def, array('{{{' => '<nowiki>{{{', '}}}' => '}}}</nowiki>')); |
178 | | - $parser = new Parser(); |
179 | | - $parser->mOptions = new ParserOptions(); |
180 | | - $parser->mOptions->initialiseFromUser($wgUser); |
181 | | - $form_def = $parser->parse($form_def, $this->mPageTitle, $parser->mOptions)->getText(); |
| 179 | + $wgParser->mOptions = new ParserOptions(); |
| 180 | + $wgParser->mOptions->initialiseFromUser($wgUser); |
| 181 | + $form_def = $wgParser->parse($form_def, $this->mPageTitle, $wgParser->mOptions)->getText(); |
182 | 182 | } |
183 | 183 | |
184 | 184 | // turn form definition file into an array of sections, one for each |