- bugfix on calling template functions like Smarty tags

This commit is contained in:
Uwe.Tews
2010-06-03 14:33:51 +00:00
parent 62490ae8c0
commit cf2f6a33e1
2 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
03/06/2010
- bugfix on calling template functions like Smarty tags
01/06/2010
- bugfix on template functions used with template inheritance
- removed /* vim: set expandtab: */ comments

View File

@@ -31,12 +31,11 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
$this->_open_tag('function', $save);
$_name = trim($_attr['name'], "'\"");
unset($_attr['name']);
$compiler->template->properties['function'][$_name]['parameter'] = array();
foreach ($_attr as $_key => $_data) {
$compiler->template->properties['function'][$_name]['parameter'][$_key] = $_data;
}
if (isset($compiler->template->properties['function'][$_name]['parameter'])) {
$compiler->smarty->template_functions[$_name]['parameter'] = $compiler->template->properties['function'][$_name]['parameter'];
}
$compiler->smarty->template_functions[$_name]['parameter'] = $compiler->template->properties['function'][$_name]['parameter'];
if ($compiler->template->caching) {
$output = '';
} else {