From ba74349d5928a0832471659380dcd62b732e047b Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Thu, 9 Apr 2009 16:38:07 +0000 Subject: [PATCH] - fixed execution of filters defined by classes --- change_log.txt | 1 + libs/sysplugins/internal.run_filter.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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