r84492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84491‎ | r84492 | r84493 >
Date:21:53, 21 March 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
do block levels for form definition
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -365,12 +365,9 @@
366366 // }
367367 // Otherwise, parse it.
368368 // if ( ! $got_form_def_from_cache ) {
369 - if ( !$embedded) {
370 - $wgParser->clearState();
371 - }
372 -
373369 $form_def = $wgParser->recursiveTagParse( $form_def );
374 - $form_def = $wgParser->mStripState->unstripBoth( $form_def );
 370+ $form_def = $wgParser->mStripState->unstripNoWiki( $form_def );
 371+ $form_def = $wgParser -> doBlockLevels( $form_def, true );
375372 // } else {
376373 // $form_def = $wgParser->parse( $form_def, $this->mPageTitle, $wgParser->mOptions )->getText();
377374 // }