GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved not used code to trash (rss, old perm.)
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
smarty
/
libs
/
plugins
/
function.counter.php
diff --git
a/wwwroot/smarty/libs/plugins/function.counter.php
b/wwwroot/smarty/libs/plugins/function.counter.php
index 2fb5b2c6cd7dda34a899f43b9a9c215c9772da00..1f26db5fb632166ad33d46d15faa9449cfd84dd4 100644
(file)
--- a/
wwwroot/smarty/libs/plugins/function.counter.php
+++ b/
wwwroot/smarty/libs/plugins/function.counter.php
@@
-12,6
+12,7
@@
* Type: function<br>
* Name: counter<br>
* Purpose: print out a counter value
* 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
* @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($counter['assign'])) {
$smarty->assign($counter['assign'], $counter['count']);
}
-
+
if (isset($params['print'])) {
$print = (bool)$params['print'];
} else {
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['skip'])) {
$counter['skip'] = $params['skip'];
}
-
+
if (isset($params['direction'])) {
$counter['direction'] = $params['direction'];
}
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'];
$counter['count'] -= $counter['skip'];
else
$counter['count'] += $counter['skip'];
-
+
return $retval;
return $retval;
-
+
}
/* vim: set expandtab: */
}
/* vim: set expandtab: */
This page took
0.09119 seconds
and
4
git commands to generate.