pete_morgan Fri Feb 17 22:18:05 2006 UTC
Modified files:
/smarty/docs/en/programmers/caching caching-cacheable.xml
Log:
minor tweaks
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/programmers/caching/caching-cacheable.xml?r1=1.8&r2=1.9&diff_format=u
Index: smarty/docs/en/programmers/caching/caching-cacheable.xml
diff -u smarty/docs/en/programmers/caching/caching-cacheable.xml:1.8
smarty/docs/en/programmers/caching/caching-cacheable.xml:1.9
--- smarty/docs/en/programmers/caching/caching-cacheable.xml:1.8 Sat Dec
10 08:54:14 2005
+++ smarty/docs/en/programmers/caching/caching-cacheable.xml Fri Feb 17
22:18:05 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<sect1 id="caching.cacheable">
<title>Controlling Cacheability of Plugins' Output</title>
<para>
@@ -39,10 +39,11 @@
function remaining_seconds($params, &$smarty) {
$remain = $params['endtime'] - time();
- if ($remain >=0)
- return $remain . " second(s)";
- else
- return "done";
+ if($remain >= 0){
+ return $remain . ' second(s)';
+ }else{
+ return 'done';
+ }
}
$smarty->register_function('remaining', 'remaining_seconds', false,
array('endtime'));
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|