From: Platonides Date: Tue, 8 Feb 2011 16:32:30 +0000 (+0000) Subject: Revert r81738. Extensions calling clearState() with no mOptions fixed. X-Git-Tag: 1.31.0-rc.0~32111 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=a601b4f6774fe9b224cd792bafbb528d79a8c0f1;p=lhc%2Fweb%2Fwiklou.git Revert r81738. Extensions calling clearState() with no mOptions fixed. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 9d9ccad881..b7c63bfc17 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -194,9 +194,7 @@ class Parser { $this->firstCallInit(); } $this->mOutput = new ParserOutput; - if( $this->mOptions ) { - $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) ); - } + $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) ); $this->mAutonumber = 0; $this->mLastSection = ''; $this->mDTopen = false;