(bug 13441) Allow Special:Recentchanges to show bots only
[lhc/web/wiklou.git] / includes / Preprocessor_Hash.php
index 85e152c..ee3539a 100644 (file)
@@ -804,10 +804,10 @@ class PPFrame_Hash implements PPFrame {
                {
                        return '<span class="error">Node-count limit exceeded</span>';
                }
-               if ( $depth > $this->parser->mOptions->mMaxPPExpandDepth ) {
+               if ( $this->depth > $this->parser->mOptions->mMaxPPExpandDepth ) {
                        return '<span class="error">Expansion depth limit exceeded</span>';
                }
-               ++$depth;
+               ++$this->depth;
 
                $outStack = array( '', '' );
                $iteratorStack = array( false, $root );
@@ -928,7 +928,7 @@ class PPFrame_Hash implements PPFrame {
                                                $titleText = $this->title->getPrefixedDBkey();
                                                $this->parser->mHeadings[] = array( $titleText, $bits['i'] );
                                                $serial = count( $this->parser->mHeadings ) - 1;
-                                               $marker = "{$this->parser->mUniqPrefix}-h-$serial-{$this->parser->mMarkerSuffix}";
+                                               $marker = "{$this->parser->mUniqPrefix}-h-$serial-" . Parser::MARKER_SUFFIX;
                                                $s = substr( $s, 0, $bits['level'] ) . $marker . substr( $s, $bits['level'] );
                                                $this->parser->mStripState->general->setPair( $marker, '' );
                                                $out .= $s;
@@ -960,7 +960,7 @@ class PPFrame_Hash implements PPFrame {
                                }
                        }
                }
-               --$depth;
+               --$this->depth;
                return $outStack[0];
        }