From f0038b3d1f323d58a288bf4f284eeee5ef27f423 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 28 Mar 2008 18:36:57 +0000 Subject: [PATCH] Fix use of $depth property; was spewing notices, using local var by accident (?) --- includes/Preprocessor_Hash.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; } -- 2.20.1