cvs: smarty /plugins shared.make_timestamp.php
| From: | Monte Ohrt | Date: | Sun, 23 Jun 2002 22:37:22 +0000 |
| Subject: | cvs: smarty /plugins shared.make_timestamp.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-149@lists.php.net to get a copy of this message | ||
mohrt Sun Jun 23 18:37:22 2002 EDT
Modified files:
/smarty/plugins shared.make_timestamp.php
Log:
update timestamp plugin to work when passed a timestamp
Index: smarty/plugins/shared.make_timestamp.php
diff -u smarty/plugins/shared.make_timestamp.php:1.2 smarty/plugins/shared.make_timestamp.php:1.3
--- smarty/plugins/shared.make_timestamp.php:1.2 Tue Jun 18 10:15:58 2002
+++ smarty/plugins/shared.make_timestamp.php Sun Jun 23 18:37:21 2002
@@ -23,8 +23,9 @@
}
// couldn't recognize it, try to return a time
- if ((int) $time > 0)
- return (int) $time;
+ $time = (int) $string;
+ if ($time > 0)
+ return $time;
else
return time();
}