r84480 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84479‎ | r84480 | r84481 >
Date:19:57, 21 March 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
reset parser if not embedded
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -365,8 +365,11 @@
366366 // }
367367 // Otherwise, parse it.
368368 // if ( ! $got_form_def_from_cache ) {
369 -// if ( $embedded) {
370 - $form_def = $wgParser->recursiveTagParse( $form_def );
 369+ if ( !$embedded) {
 370+ $wgParser->clearState();
 371+ }
 372+
 373+ $form_def = $wgParser->recursiveTagParse( $form_def );
371374 $form_def = $wgParser->mStripState->unstripBoth( $form_def );
372375 // } else {
373376 // $form_def = $wgParser->parse( $form_def, $this->mPageTitle, $wgParser->mOptions )->getText();