-bugfix allow integer as attribute name in plugin calls

-change  trimm whitespace from error message, removed long list of expected tokens
This commit is contained in:
uwe.tews@googlemail.com
2010-11-23 23:36:16 +00:00
parent c0130d5d34
commit c08664e75e
3 changed files with 21 additions and 14 deletions

View File

@@ -71,7 +71,8 @@ class Smarty_Internal_CompileBase {
}
// must be named attribute
} else {
$_indexed_attr = array_merge($_indexed_attr, $mixed);
reset($mixed);
$_indexed_attr[key($mixed)] = $mixed[key($mixed)];
}
}
}