X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Fplugins%2Ffunction.counter.php;h=1f26db5fb632166ad33d46d15faa9449cfd84dd4;hb=71a598e9ace080c3a636a39cc110e1ed169a1a4e;hp=2fb5b2c6cd7dda34a899f43b9a9c215c9772da00;hpb=e034221efbc7970ec58be22d7517fd3c503dc903;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/plugins/function.counter.php b/wwwroot/smarty/libs/plugins/function.counter.php index 2fb5b2c..1f26db5 100644 --- a/wwwroot/smarty/libs/plugins/function.counter.php +++ b/wwwroot/smarty/libs/plugins/function.counter.php @@ -12,6 +12,7 @@ * Type: function
* Name: counter
* Purpose: print out a counter value + * @author Monte Ohrt * @link http://smarty.php.net/manual/en/language.function.counter.php {counter} * (Smarty online manual) * @param array parameters @@ -44,7 +45,7 @@ function smarty_function_counter($params, &$smarty) if (isset($counter['assign'])) { $smarty->assign($counter['assign'], $counter['count']); } - + if (isset($params['print'])) { $print = (bool)$params['print']; } else { @@ -60,7 +61,7 @@ function smarty_function_counter($params, &$smarty) if (isset($params['skip'])) { $counter['skip'] = $params['skip']; } - + if (isset($params['direction'])) { $counter['direction'] = $params['direction']; } @@ -69,9 +70,9 @@ function smarty_function_counter($params, &$smarty) $counter['count'] -= $counter['skip']; else $counter['count'] += $counter['skip']; - + return $retval; - + } /* vim: set expandtab: */