From 6c020763a808aebcb723213300b323505cb0d03c Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Fri, 8 Jan 2010 15:54:21 +0000 Subject: [PATCH] - bugfix on variable filters. filter/nofilter attributes did not work on output statements --- change_log.txt | 3 +++ .../smarty_internal_compile_private_print_expression.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 81a08966..1fc5fc5d 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +01/08/2009 +- bugfix on variable filters. filter/nofilter attributes did not work on output statements + 01/07/2009 - bugfix on file dependency at template inheritance - bugfix on nocache code at template inheritance diff --git a/libs/sysplugins/smarty_internal_compile_private_print_expression.php b/libs/sysplugins/smarty_internal_compile_private_print_expression.php index 5fb7912a..7cfe473d 100644 --- a/libs/sysplugins/smarty_internal_compile_private_print_expression.php +++ b/libs/sysplugins/smarty_internal_compile_private_print_expression.php @@ -49,7 +49,7 @@ class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_C // display value $this->compiler->has_output = true; if (isset($this->compiler->smarty->registered_filters['variable'])) { - $output = 'smarty);?>'; + $output = 'smarty, ' . $_attr['filter'] . ');?>'; } else { $output = ''; }