From: Platonides Date: Fri, 20 Aug 2010 18:03:45 +0000 (+0000) Subject: Revert the change to Preprocessor_DOM.php of r71286. X-Git-Tag: 1.31.0-rc.0~35423 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=303dd1cab2c9636782501bb0a0238955ce56d149;p=lhc%2Fweb%2Fwiklou.git Revert the change to Preprocessor_DOM.php of r71286. The parsertest "Link with 3 brackets" passes again. --- 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 );