r81759 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81758‎ | r81759 | r81760 >
Date:16:32, 8 February 2011
Author:platonides
Status:ok
Tags:
Comment:
Revert r81738. Extensions calling clearState() with no mOptions fixed.
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -194,9 +194,7 @@
195195 $this->firstCallInit();
196196 }
197197 $this->mOutput = new ParserOutput;
198 - if( $this->mOptions ) {
199 - $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) );
200 - }
 198+ $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) );
201199 $this->mAutonumber = 0;
202200 $this->mLastSection = '';
203201 $this->mDTopen = false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81738Tweak for r79018: fatal errors due to something calling parser clearState whe...brion13:31, 8 February 2011

Status & tagging log