Skip to content

Commit

Permalink
Un-commented $wgParser->clearState() call - necessary in some circums…
Browse files Browse the repository at this point in the history
…tances.

For Special:RunQuery and I think other cases.

Change-Id: Ia5e230f641cc12949a3b472900bd607a24018f6f
  • Loading branch information
yaronkoren committed Sep 3, 2013
1 parent 0a811dd commit 05eb93a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/SF_FormPrinter.php
Expand Up @@ -444,7 +444,9 @@ function formHTML( $form_def, $form_submitted, $source_is_page, $form_id = null,
$wgParser->Options( ParserOptions::newFromUser( $wgUser ) );
}
$wgParser->Title( $this->mPageTitle );
// $wgParser->clearState();
// This is needed in order to make sure $parser->mLinkHolders
// is set.
$wgParser->clearState();

$form_def = SFFormUtils::getFormDefinition( $wgParser, $form_def, $form_id );

Expand Down

0 comments on commit 05eb93a

Please sign in to comment.