From 35c9b0030634ea38c7af3deb2a5b971a92a1c465 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 7 Aug 2003 10:21:17 +0000 Subject: [PATCH] fixed output of custom-functions with cached attributes --- libs/Smarty_Compiler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index bcbd5c62..6062961a 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -692,13 +692,13 @@ class Smarty_Compiler extends Smarty { $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 = '_pop_cacheable_state('function', $tag_command) . "?>\n"; }