Revert r81738. Extensions calling clearState() with no mOptions fixed.
authorPlatonides <platonides@users.mediawiki.org>
Tue, 8 Feb 2011 16:32:30 +0000 (16:32 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 8 Feb 2011 16:32:30 +0000 (16:32 +0000)
includes/parser/Parser.php

index 9d9ccad..b7c63bf 100644 (file)
@@ -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;