Fixed fatal error in Preprocessor_Hash due to r82645
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 28 Feb 2011 02:40:39 +0000 (02:40 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 28 Feb 2011 02:40:39 +0000 (02:40 +0000)
includes/parser/Preprocessor_Hash.php

index ad57c47..baea681 100644 (file)
@@ -1031,7 +1031,7 @@ class PPFrame_Hash implements PPFrame {
                                                $serial = count( $this->parser->mHeadings ) - 1;
                                                $marker = "{$this->parser->mUniqPrefix}-h-$serial-" . Parser::MARKER_SUFFIX;
                                                $s = substr( $s, 0, $bits['level'] ) . $marker . substr( $s, $bits['level'] );
-                                               $this->parser->mStripState->setGeneral( $marker, '' );
+                                               $this->parser->mStripState->addGeneral( $marker, '' );
                                                $out .= $s;
                                        } else {
                                                # Expand in virtual stack