[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-cvs
Subject:    [SMARTY-CVS] cvs: smarty /libs Smarty_Compiler.class.php
From:       "Messju Mohr" <messju () php ! net>
Date:       2003-07-02 10:56:28
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic