cvs: smarty /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1057143388@cvsserver>
messju		Wed Jul  2 06:56:28 2003 EDT

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  fixed duplicate generation of arg-list in _compile_block_tag()
  
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.259 smarty/libs/Smarty_Compiler.class.php:1.260
--- smarty/libs/Smarty_Compiler.class.php:1.259	Wed Jul  2 05:01:26 2003
+++ smarty/libs/Smarty_Compiler.class.php	Wed Jul  2 06:56:27 2003
@@ -39,7 +39,8 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.259 2003/07/02 09:01:26 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.260 2003/07/02 10:56:27 messju Exp $ */
+
 /**
  * Template compiling class
  * @package Smarty
@@ -662,8 +663,8 @@
             }
 
             $output = '<?php ' . $this->_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 = '<?php $this->_block_content = ob_get_contents(); ob_end_clean(); ';



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.