- fixed execution of filters defined by classes

This commit is contained in:
Uwe.Tews
2009-04-09 16:38:07 +00:00
parent 57d190e997
commit ba74349d59
2 changed files with 3 additions and 2 deletions

View File

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

View File

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