- bugfix the {function..} tag did not accept the name attribute in double quotes

This commit is contained in:
Uwe.Tews
2010-01-12 20:37:05 +00:00
parent f83fd47acc
commit db887adc37
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
- changed back modifer handling in parser. Some restrictions still apply:
if modifiers are used in side {if...} expression or in mathematical expressions
parentheses must be used.
- bugfix the {function..} tag did not accept the name attribute in double quotes
###beta 6####

View File

@@ -29,7 +29,7 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
$save = array($_attr, $compiler->template->extracted_compiled_code, $compiler->template->extract_code,
$compiler->template->has_nocache_code, $compiler->template->required_plugins);
$this->_open_tag('function', $save);
$_name = trim($_attr['name'], "'");
$_name = trim($_attr['name'], "'\"");
unset($_attr['name']);
foreach ($_attr as $_key => $_data) {
$compiler->template->properties['function'][$_name]['parameter'][$_key] = $_data;