From 801a05afc22c7a6b96e97d2eafafced7898feb4a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 2 Aug 2011 16:18:10 +0000 Subject: [PATCH] Revert r93688 per Platonides --- includes/parser/Preprocessor_DOM.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index ecc522348e..5b79876bea 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -956,12 +956,11 @@ class PPFrame_DOM implements PPFrame { return $root; } - if ( is_object( $this->parser->mOptions ) && ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) - { + if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) { return 'Node-count limit exceeded'; } - if ( is_object( $this->parser->mOptions ) && $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { + if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { return 'Expansion depth limit exceeded'; } wfProfileIn( __METHOD__ ); -- 2.20.1