Updated to Smarty 2.6.26 (June 18th, 2009), we should update to Smarty 3.x (current...
[mirrors/Kyberia-bloodline.git] / wwwroot / smarty / libs / plugins / function.counter.php
index 2fb5b2c6cd7dda34a899f43b9a9c215c9772da00..1f26db5fb632166ad33d46d15faa9449cfd84dd4 100644 (file)
@@ -12,6 +12,7 @@
  * Type:     function<br>
  * Name:     counter<br>
  * Purpose:  print out a counter value
+ * @author Monte Ohrt <monte at ohrt dot com>
  * @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: */
This page took 0.142362 seconds and 4 git commands to generate.