diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 5837c7f8dd7..714d9d312ca 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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