cvs: smarty / NEWS /plugins function.cycle.php
| From: | Monte Ohrt | Date: | Tue, 18 Jun 2002 18:20:01 +0000 |
| Subject: | cvs: smarty / NEWS /plugins function.cycle.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-142@lists.php.net to get a copy of this message | ||
mohrt Tue Jun 18 14:20:01 2002 EDT
Modified files:
/smarty NEWS
/smarty/plugins function.cycle.php
Log:
gave $reset a default value in cycle function
Index: smarty/NEWS
diff -u smarty/NEWS:1.207 smarty/NEWS:1.208
--- smarty/NEWS:1.207 Tue Jun 18 10:15:57 2002
+++ smarty/NEWS Tue Jun 18 14:20:01 2002
@@ -1,3 +1,4 @@
+ - gave $reset a default value in cycle plugin (Monte)
- fixed warnings with html_select_date and timestamp
functions (Monte)
- added support for sub directory exlusion format (Monte)
Index: smarty/plugins/function.cycle.php
diff -u smarty/plugins/function.cycle.php:1.10 smarty/plugins/function.cycle.php:1.11
--- smarty/plugins/function.cycle.php:1.10 Mon Jun 3 12:53:53 2002
+++ smarty/plugins/function.cycle.php Tue Jun 18 14:20:01 2002
@@ -46,7 +46,11 @@
if (!isset($advance)) {
$advance = true;
}
-
+
+ if (!isset($reset)) {
+ $reset = false;
+ }
+
if (!in_array('values', array_keys($params))) {
if(!isset($cycle_vars[$name]['values'])) {
$smarty->trigger_error("cycle: missing 'values' parameter");