cvs: smarty /libs Smarty_Compiler.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1060251678@cvsserver> |
messju Thu Aug 7 06:21:18 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
fixed output of custom-functions with cached attributes
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.271 smarty/libs/Smarty_Compiler.class.php:1.272
--- smarty/libs/Smarty_Compiler.class.php:1.271 Wed Aug 6 07:35:58 2003
+++ smarty/libs/Smarty_Compiler.class.php Thu Aug 7 06:21:17 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.271 2003/08/06 11:35:58 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.272 2003/08/07 10:21:17 messju Exp $ */
/**
* Template compiling class
@@ -692,13 +692,13 @@
$attrs = $this->_parse_attrs($tag_args);
$arg_list = $this->_compile_arg_list('function', $tag_command, $attrs, $_cache_attrs='');
- $_return = $_cache_attrs . $this->_compile_plugin_call('function', $tag_command).'(array('.implode(',', $arg_list)."), \$this)";
+ $_return = $this->_compile_plugin_call('function', $tag_command).'(array('.implode(',', $arg_list)."), \$this)";
if($tag_modifier != '') {
$this->_parse_modifiers($_return, $tag_modifier);
}
if($_return != '') {
- $_return = '<?php ' . $_cacheable_state . 'echo ' . $_return . ';'
+ $_return = '<?php ' . $_cacheable_state . $_cache_attrs . 'echo ' . $_return . ';'
. $this->_pop_cacheable_state('function', $tag_command) . "?>\n";
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php