We have startParse() for that

This commit is contained in:
Alexandre Emsenhuber 2011-08-11 13:57:15 +00:00
parent 6026ca43ea
commit 759707959c

View file

@ -4524,10 +4524,7 @@ class Parser {
function cleanSig( $text, $parsing = false ) {
if ( !$parsing ) {
global $wgTitle;
$this->mOptions = new ParserOptions;
$this->clearState();
$this->setTitle( $wgTitle );
$this->setOutputType = self::OT_PREPROCESS;
$this->startParse( $wgTitle, new ParserOptions, self::OT_PREPROCESS, true );
}
# Option to disable this feature