From 303dd1cab2c9636782501bb0a0238955ce56d149 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 20 Aug 2010 18:03:45 +0000 Subject: [PATCH] Revert the change to Preprocessor_DOM.php of r71286. The parsertest "Link with 3 brackets" passes again. --- includes/parser/Preprocessor_DOM.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index 84da6f0dc7..ae33901146 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -612,7 +612,7 @@ class Preprocessor_DOM implements Preprocessor { # do we still qualify for any callback with remaining count? $names = $rules[$piece->open]['names']; $skippedBraces = 0; - + $enclosingAccum =& $accum; while ( $piece->count ) { if ( array_key_exists( $piece->count, $names ) ) { $stack->push( $piece ); @@ -622,6 +622,7 @@ class Preprocessor_DOM implements Preprocessor { --$piece->count; $skippedBraces ++; } + $enclosingAccum .= str_repeat( $piece->open, $skippedBraces ); } $flags = $stack->getFlags(); extract( $flags ); -- 2.20.1