From cc381c14613b4c4539d74f38ec58196f6dfcdaa0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 1 Nov 2002 10:47:20 +0000 Subject: - Fixed glitch in block module: the admin links were not composed correctly. Patch by Stefan. - Added missing t() functions and improved the %x directives for better readability and to ease the process of translating your site. Patches by Stefan. - Made two small additions to the 'code-clean.sh' script; it will now remove patch related junk. NOTES: - I removed the · related bits. Let's tackle these later on in a separate patch after we got some sort of consensus. - I removed the 'module_exist("drupal")' check in the user module; I *think* it is incomplete and therefore incorrect. - Stefan, try using quotes in your translations and check whether everything still works. Example: translate the "Create account" button to "Create \"haha\" account \'hihi\'" and see if you can still create new accounts. Maybe automate this using a quick hack in the locale module ... --- modules/watchdog.module | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index d4e7b654e..ff2473dda 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -26,8 +26,8 @@ function watchdog_link($type) { } function watchdog_conf_options() { - $period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => "Never"); - $output .= form_select("Discard entries older than", "watchdog_clear", variable_get("watchdog_clear", 604800), $period, "The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab."); + $period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => t("Never")); + $output .= form_select(t("Discard entries older than"), "watchdog_clear", variable_get("watchdog_clear", 604800), $period, t("The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab.")); return $output; } @@ -42,7 +42,7 @@ function watchdog_overview($type) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY timestamp DESC LIMIT 1000"); $output .= ""; - $output .= " "; + $output .= " "; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { $output .= " "; @@ -58,12 +58,12 @@ function watchdog_view($id) { if ($watchdog = db_fetch_object($result)) { $output .= "
datemessageuseroperations
" . t("date") . "" . t("message") . "" . t("user") . "" . t("operations") . "
". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."
"; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; $output .= "
Type:". check_output($watchdog->type) ."
Date:". format_date($watchdog->timestamp, "large") ."
User:". format_name($watchdog) ."
Location:". check_output($watchdog->location) ."
Message:". check_output($watchdog->message) ."
Hostname:". check_output($watchdog->hostname) ."
" . t("Type") . ":" . "". check_output($watchdog->type) ."
" . t("Date") . ":" . "". format_date($watchdog->timestamp, "large") ."
" . t("User") . ":" . "". format_name($watchdog) ."
" . t("Location") . ":" . "". check_output($watchdog->location) ."
" . t("Message") . ":" . "". check_output($watchdog->message) ."
" . t("Hostname") . ":" . "". check_output($watchdog->hostname) ."
"; return $output; -- cgit v1.2.3