From a601b4f6774fe9b224cd792bafbb528d79a8c0f1 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 8 Feb 2011 16:32:30 +0000 Subject: [PATCH] Revert r81738. Extensions calling clearState() with no mOptions fixed. --- includes/parser/Parser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.20.1