diff --git a/change_log.txt b/change_log.txt index ad6e4255..adfa9807 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,5 @@ 04/09/2009 +- fixed execution of filters defined by classes - compile the always the content of {block} tags to make shure that the filters are running over it - syntax corrections on variable object property - syntax corrections on array access in dot syntax diff --git a/libs/sysplugins/internal.run_filter.php b/libs/sysplugins/internal.run_filter.php index 00d28e43..71c67e2f 100644 --- a/libs/sysplugins/internal.run_filter.php +++ b/libs/sysplugins/internal.run_filter.php @@ -50,8 +50,8 @@ class Smarty_Internal_Run_Filter extends Smarty_Internal_Base { } // loop over registerd filters of specified type if (!empty($this->smarty->registered_filters[$type])) { - foreach ($this->smarty->registered_filters[$type] as $name) { - $output = call_user_func_array($this->smarty->registered_filters[$type][$name], array($output, $this->smarty)); + foreach ($this->smarty->registered_filters[$type] as $key => $name) { + $output = call_user_func_array($this->smarty->registered_filters[$type][$key], array($output, $this->smarty)); } } // return filtered output