From 47ddc178a101846c1a79423b4129b5cc49224718 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 1 Aug 2011 23:39:34 +0000 Subject: [PATCH] Commit Preprocessor_DOM live hacks --- includes/parser/Preprocessor_DOM.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index 48c234575f..ecc522348e 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -956,12 +956,12 @@ class PPFrame_DOM implements PPFrame { return $root; } - if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) + if ( is_object( $this->parser->mOptions ) && ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) { return 'Node-count limit exceeded'; } - if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { + if ( is_object( $this->parser->mOptions ) && $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { return 'Expansion depth limit exceeded'; } wfProfileIn( __METHOD__ ); -- 2.20.1