From: Aaron Schulz Date: Fri, 6 Mar 2009 00:20:44 +0000 (+0000) Subject: fix profiling X-Git-Tag: 1.31.0-rc.0~42594 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=abb4c5c5164120deaa1b57789fa27d8ecd66b37f;p=lhc%2Fweb%2Fwiklou.git fix profiling --- diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index bd33c10249..2e1145459c 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -873,7 +873,6 @@ class PPFrame_DOM implements PPFrame { if ( is_string( $root ) ) { return $root; } - wfProfileIn( __METHOD__ ); if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->mMaxPPNodeCount ) { @@ -883,6 +882,7 @@ class PPFrame_DOM implements PPFrame { if ( $expansionDepth > $this->parser->mOptions->mMaxPPExpandDepth ) { return 'Expansion depth limit exceeded'; } + wfProfileIn( __METHOD__ ); ++$expansionDepth; if ( $root instanceof PPNode_DOM ) {