From: Alexandre Emsenhuber Date: Thu, 11 Aug 2011 13:57:15 +0000 (+0000) Subject: We have startParse() for that X-Git-Tag: 1.31.0-rc.0~28356 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=759707959cdcd327802c9b114da0ba34bd4f4241;p=lhc%2Fweb%2Fwiklou.git We have startParse() for that --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 5837c7f8dd..714d9d312c 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