From cfe7af4d2b2108b933748e91de4364f7ff0c115a Mon Sep 17 00:00:00 2001 From: messju Date: Wed, 2 Jul 2003 10:56:27 +0000 Subject: [PATCH] fixed duplicate generation of arg-list in _compile_block_tag() --- libs/Smarty_Compiler.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 0cfac138..a4a9193e 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -40,6 +40,7 @@ */ /* $Id$ */ + /** * Template compiling class * @package Smarty @@ -662,8 +663,8 @@ class Smarty_Compiler extends Smarty { } $output = '_push_cacheable_state('block', $tag_command); - $output .= "\$this->_tag_stack[] = array('$tag_command', array(".implode(',', (array)$arg_list).')); '; - $output .= $this->_compile_plugin_call('block', $tag_command).'(array('.implode(',', (array)$arg_list).'), null, $this, $_block_repeat=true);'; + $output .= "\$_params = \$this->_tag_stack[] = array('$tag_command', array(".implode(',', (array)$arg_list).')); '; + $output .= $this->_compile_plugin_call('block', $tag_command).'($_params[1], null, $this, $_block_repeat=true); unset($_params);'; $output .= 'while ($_block_repeat) { ob_start(); ?>'; } else { $output = '_block_content = ob_get_contents(); ob_end_clean(); ';