mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-18 23:15:21 +02:00
-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:
@@ -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)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user