From 759707959cdcd327802c9b114da0ba34bd4f4241 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 11 Aug 2011 13:57:15 +0000 Subject: [PATCH] We have startParse() for that --- includes/parser/Parser.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.20.1