diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-07-08 14:06:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-07-08 14:06:21 +0000 |
commit | 96098ce3bedb101a1d4f497f99bc06ba05068537 (patch) | |
tree | 3e8a271c7f8530e1f67044023c728c1f4c56301b /modules | |
parent | fdb5d1846d97f17d387f9f3191e6a9f5b8e63d46 (diff) | |
download | brdo-96098ce3bedb101a1d4f497f99bc06ba05068537.tar.gz brdo-96098ce3bedb101a1d4f497f99bc06ba05068537.tar.bz2 |
- cloud.module:
+ made 1 few visual change.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cloud.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cloud.module b/modules/cloud.module index fc3667a7c..11d92100b 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -103,9 +103,9 @@ function cloud_list() { $result = db_query("SELECT * FROM site ORDER BY timestamp DESC LIMIT 100"); while ($site = db_fetch_object($result)) { - if ($date != date("g A", $site->timestamp)) { - $date = date("g A", $site->timestamp); - $output .= "<p /><b>$date:</b>"; + if ($hour != floor((time() - $site->timestamp) / 3600)) { + $hour = floor((time() - $site->timestamp) / 3600); + $output .= "<p />Updated ". format_plural($hour, "hour", "hours") ." ago :"; } $output .= "<br />". format_url($site->url, $site->title); } |