Changeset 23384 for trunk/include/smarty/libs/plugins/function.counter.php
- Timestamp:
- Jun 20, 2013, 5:38:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/smarty/libs/plugins/function.counter.php
r3282 r23384 3 3 * Smarty plugin 4 4 * @package Smarty 5 * @subpackage plugins5 * @subpackage PluginsFunction 6 6 */ 7 8 7 9 8 /** … … 13 12 * Name: counter<br> 14 13 * Purpose: print out a counter value 14 * 15 15 * @author Monte Ohrt <monte at ohrt dot com> 16 * @link http:// smarty.php.net/manual/en/language.function.counter.php {counter}16 * @link http://www.smarty.net/manual/en/language.function.counter.php {counter} 17 17 * (Smarty online manual) 18 * @param array parameters19 * @param Smarty 18 * @param array $params parameters 19 * @param Smarty_Internal_Template $template template object 20 20 * @return string|null 21 21 */ 22 function smarty_function_counter($params, &$smarty)22 function smarty_function_counter($params, $template) 23 23 { 24 24 static $counters = array(); … … 44 44 45 45 if (isset($counter['assign'])) { 46 $ smarty->assign($counter['assign'], $counter['count']);46 $template->assign($counter['assign'], $counter['count']); 47 47 } 48 48 … … 76 76 } 77 77 78 /* vim: set expandtab: */79 80 78 ?>
Note: See TracChangeset
for help on using the changeset viewer.