From f5c4fd4534eee6e86676066ce95e6a9c79726130 Mon Sep 17 00:00:00 2001 From: messju Date: Fri, 2 May 2003 22:33:15 +0000 Subject: [PATCH] fixed assign attribute for multiple counters --- NEWS | 1 + libs/plugins/function.counter.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a60b007b..2759a435 100644 --- a/NEWS +++ b/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') diff --git a/libs/plugins/function.counter.php b/libs/plugins/function.counter.php index 5e395422..edef1bde 100644 --- a/libs/plugins/function.counter.php +++ b/libs/plugins/function.counter.php @@ -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]) {