We have startParse() for that
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 11 Aug 2011 13:57:15 +0000 (13:57 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 11 Aug 2011 13:57:15 +0000 (13:57 +0000)
includes/parser/Parser.php

index 5837c7f..714d9d3 100644 (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