- bugfix on default parameter for {function}

This commit is contained in:
uwe.tews@googlemail.com
2010-11-16 23:16:34 +00:00
parent db8867cd88
commit a2d99d41b1
3 changed files with 4 additions and 5 deletions
@@ -35,7 +35,7 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
if ($_attr['nocache'] === true) {
$this->compiler->trigger_template_error('nocache option not allowed', $this->compiler->lex->taglineno);
}
unset($_attr['nocache']);
$save = array($_attr, $compiler->parser->current_buffer,
$compiler->template->has_nocache_code, $compiler->template->required_plugins);
$this->_open_tag('function', $save);