- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}

This commit is contained in:
Uwe.Tews@googlemail.com
2013-09-09 16:10:13 +00:00
parent 70d5af437e
commit 0d9f9802db
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk ===== ===== trunk =====
09.09.2012
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}
27.08.2013 27.08.2013
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518} - bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518}

View File

@@ -91,7 +91,7 @@ class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_C
if (!is_array($function)) { if (!is_array($function)) {
$output = "{$function}({$output},\$_smarty_tpl)"; $output = "{$function}({$output},\$_smarty_tpl)";
} elseif (is_object($function[0])) { } elseif (is_object($function[0])) {
$output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE][{$key}][0]->{$function[1]}({$output},\$_smarty_tpl)"; $output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE]['{$key}'][0]->{$function[1]}({$output},\$_smarty_tpl)";
} else { } else {
$output = "{$function[0]}::{$function[1]}({$output},\$_smarty_tpl)"; $output = "{$function[0]}::{$function[1]}({$output},\$_smarty_tpl)";
} }