Ignore:
Timestamp:
Jun 20, 2013, 5:38:47 AM (11 years ago)
Author:
rvelices
Message:

smarty 3 - first pass for tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/smarty/libs/plugins/function.counter.php

    r3282 r23384  
    33 * Smarty plugin
    44 * @package Smarty
    5  * @subpackage plugins
     5 * @subpackage PluginsFunction
    66 */
    7 
    87
    98/**
     
    1312 * Name:     counter<br>
    1413 * Purpose:  print out a counter value
     14 *
    1515 * @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}
    1717 *       (Smarty online manual)
    18  * @param array parameters
    19  * @param Smarty
     18 * @param array                    $params   parameters
     19 * @param Smarty_Internal_Template $template template object
    2020 * @return string|null
    2121 */
    22 function smarty_function_counter($params, &$smarty)
     22function smarty_function_counter($params, $template)
    2323{
    2424    static $counters = array();
     
    4444
    4545    if (isset($counter['assign'])) {
    46         $smarty->assign($counter['assign'], $counter['count']);
     46        $template->assign($counter['assign'], $counter['count']);
    4747    }
    4848   
     
    7676}
    7777
    78 /* vim: set expandtab: */
    79 
    8078?>
Note: See TracChangeset for help on using the changeset viewer.