- bugfix on variable filters. filter/nofilter attributes did not work on output statements

This commit is contained in:
Uwe.Tews
2010-01-08 15:54:21 +00:00
parent 17a8c7f0a2
commit 6c020763a8
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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 = '<?php echo Smarty_Internal_Filter_Handler::runFilter(\'variable\', ' . $_attr['value'] . ',$this->smarty);?>';
$output = '<?php echo Smarty_Internal_Filter_Handler::runFilter(\'variable\', ' . $_attr['value'] . ',$this->smarty, ' . $_attr['filter'] . ');?>';
} else {
$output = '<?php echo ' . $_attr['value'] . ';?>';
}