mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fixed assign attribute for multiple counters
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- fixed assign attribute for multiple counters (messju)
|
||||
- added simple math operators to variables (Monte)
|
||||
- reverted patch for case-insensitive tag-names (messju)
|
||||
- enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted')
|
||||
|
@@ -48,7 +48,7 @@ function smarty_function_counter($params, &$smarty)
|
||||
|
||||
if (!empty($assign)) {
|
||||
if (!isset($print)) $printval[$name] = false;
|
||||
$smarty->assign($assign, $count[$name]);
|
||||
$smarty->assign_by_ref($assign, $count[$name]);
|
||||
}
|
||||
|
||||
if ($printval[$name]) {
|
||||
|
Reference in New Issue
Block a user