r94243 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94242‎ | r94243 | r94244 >
Date:13:57, 11 August 2011
Author:ialex
Status:ok
Tags:
Comment:
We have startParse() for that
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -4524,10 +4524,7 @@
45254525 function cleanSig( $text, $parsing = false ) {
45264526 if ( !$parsing ) {
45274527 global $wgTitle;
4528 - $this->mOptions = new ParserOptions;
4529 - $this->clearState();
4530 - $this->setTitle( $wgTitle );
4531 - $this->setOutputType = self::OT_PREPROCESS;
 4528+ $this->startParse( $wgTitle, new ParserOptions, self::OT_PREPROCESS, true );
45324529 }
45334530
45344531 # Option to disable this feature

Status & tagging log