From de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 22 Apr 2002 09:05:36 +0000 Subject: - bug fixes: * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch. --- modules/cloud.module | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/cloud.module') diff --git a/modules/cloud.module b/modules/cloud.module index bc434faf8..4c4d3ec0d 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -78,7 +78,7 @@ function cloud_update($site) { function cloud_form($edit = array()) { $period = array(900 => format_interval(900), 1800 => format_interval(1800), 3600 => format_interval(3600), 7200 => format_interval(7200), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 64800 => format_interval(64800), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200)); - $threshold = array (0 => "0 bytes", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes"); + $threshold = array(0 => "0 bytes", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes"); $form .= form_textfield("Site name", "name", $edit["name"], 50, 128, "The name of the website you want to monitor for updates."); $form .= form_textfield("Site URL", "link", $edit["link"], 50, 255, "The URL of the website you want to monitor for updates."); @@ -118,7 +118,7 @@ function cloud_display() { $output .= "\n"; $output .= " \n"; while ($site = db_fetch_object($result)) { - $output .= " \n"; + $output .= " \n"; } $output .= "
sitelast updateoperations
link) ."\">". check_output($site->name) ."". ($site->timestamp ? format_interval(time() - $site->timestamp) ." ago" : "never") ."".la(t("edit site"), array("mod" => "cloud", "op" => "edit", "id" => $site->sid))."".la(t("update site"), array("mod" => "cloud", "op" => "update", "id" => $site->sid))."
link) ."\">". check_output($site->name) ."". ($site->timestamp ? format_interval(time() - $site->timestamp) ." ago" : "never") ."". la(t("edit site"), array("mod" => "cloud", "op" => "edit", "id" => $site->sid)) ."". la(t("update site"), array("mod" => "cloud", "op" => "update", "id" => $site->sid)) ."
\n"; @@ -137,7 +137,8 @@ function cloud_list($limit = 10) { if ($hour < 12) { if ($hour == 0) { $output .= "
". t("Updated < 1 hours ago:"); - } else { + } + else { $output .= "
". t("Updated %a ago:", array("%a" => format_plural($hour, "hour", "hours"))); } } @@ -163,7 +164,7 @@ function cloud_page() { function cloud_block() { $block[0]["subject"] = t("Site cloud"); - $block[0]["content"] = cloud_list(20) . "
".lm(t("more"), array("mod" => "cloud"), t("Monitor other sites in the cloud."))."
"; + $block[0]["content"] = cloud_list(20) ."
". lm(t("more"), array("mod" => "cloud"), t("Monitor other sites in the cloud.")) ."
"; $block[0]["info"] = t("Site cloud"); return $block; } @@ -172,7 +173,7 @@ function cloud_admin() { global $op, $id, $edit; if (user_access("administer site cloud")) { - print "".la(t("add new site"), array("mod" => "cloud", "op" => "add"))." | ".la(t("overview"), array("mod" => "cloud"))." | ".la(t("help"), array("mod" => "cloud", "op" => "help"))."
\n"; + print "". la(t("add new site"), array("mod" => "cloud", "op" => "add")) ." | ". la(t("overview"), array("mod" => "cloud")) ." | ". la(t("help"), array("mod" => "cloud", "op" => "help")) ."
\n"; switch ($op) { case "add": -- cgit v1.2.3