cvs: smarty / NEWS /libs/plugins function.counter.php

From: Date: Fri, 02 May 2003 22:33:15 +0000
Subject: cvs: smarty / NEWS /libs/plugins function.counter.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-578@lists.php.net to get a copy of this message
messju Fri May 2 18:33:15 2003 EDT Modified files: /smarty NEWS /smarty/libs/plugins function.counter.php Log: fixed assign attribute for multiple counters Index: smarty/NEWS diff -u smarty/NEWS:1.356 smarty/NEWS:1.357 --- smarty/NEWS:1.356 Fri May 2 12:39:18 2003 +++ smarty/NEWS Fri May 2 18:33:14 2003 @@ -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') Index: smarty/libs/plugins/function.counter.php diff -u smarty/libs/plugins/function.counter.php:1.7 smarty/libs/plugins/function.counter.php:1.8 --- smarty/libs/plugins/function.counter.php:1.7 Sun Apr 27 14:29:21 2003 +++ smarty/libs/plugins/function.counter.php Fri May 2 18:33:15 2003 @@ -48,7 +48,7 @@ if (!empty($assign)) { if (!isset($print)) $printval[$name] = false; - $smarty->assign($assign, $count[$name]); + $smarty->assign_by_ref($assign, $count[$name]); } if ($printval[$name]) {

« previous php.smarty.cvs (#578) next »