From: Brion Vibber Date: Fri, 28 Mar 2008 18:36:57 +0000 (+0000) Subject: Fix use of $depth property; was spewing notices, using local var by accident (?) X-Git-Tag: 1.31.0-rc.0~48745 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/cloturer.php?a=commitdiff_plain;h=f0038b3d1f323d58a288bf4f284eeee5ef27f423;p=lhc%2Fweb%2Fwiklou.git Fix use of $depth property; was spewing notices, using local var by accident (?) --- diff --git a/includes/Preprocessor_Hash.php b/includes/Preprocessor_Hash.php index 85790982f4..ee3539aecb 100644 --- a/includes/Preprocessor_Hash.php +++ b/includes/Preprocessor_Hash.php @@ -804,10 +804,10 @@ class PPFrame_Hash implements PPFrame { { return 'Node-count limit exceeded'; } - if ( $depth > $this->parser->mOptions->mMaxPPExpandDepth ) { + if ( $this->depth > $this->parser->mOptions->mMaxPPExpandDepth ) { return 'Expansion depth limit exceeded'; } - ++$depth; + ++$this->depth; $outStack = array( '', '' ); $iteratorStack = array( false, $root ); @@ -960,7 +960,7 @@ class PPFrame_Hash implements PPFrame { } } } - --$depth; + --$this->depth; return $outStack[0]; }