Update to Smarty 3.1.15

This commit is contained in:
Némunaire 2013-10-09 19:08:38 +02:00
commit 1c9cd9208f
119 changed files with 5232 additions and 4641 deletions

View file

@ -35,7 +35,7 @@ function smarty_function_counter($params, $template)
$counter =& $counters[$name];
if (isset($params['start'])) {
$counter['start'] = $counter['count'] = (int)$params['start'];
$counter['start'] = $counter['count'] = (int) $params['start'];
}
if (!empty($params['assign'])) {
@ -45,9 +45,9 @@ function smarty_function_counter($params, $template)
if (isset($counter['assign'])) {
$template->assign($counter['assign'], $counter['count']);
}
if (isset($params['print'])) {
$print = (bool)$params['print'];
$print = (bool) $params['print'];
} else {
$print = empty($counter['assign']);
}
@ -61,7 +61,7 @@ function smarty_function_counter($params, $template)
if (isset($params['skip'])) {
$counter['skip'] = $params['skip'];
}
if (isset($params['direction'])) {
$counter['direction'] = $params['direction'];
}
@ -70,9 +70,7 @@ function smarty_function_counter($params, $template)
$counter['count'] -= $counter['skip'];
else
$counter['count'] += $counter['skip'];
return $retval;
}
?>
return $retval;
}