From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/watchdog.module | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index 5bcc38f9b..4a3a67705 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -14,7 +14,7 @@ function watchdog_perm() { function watchdog_link($type) { if ($type == "admin" && user_access("administer watchdog")) { - $links[] = "watchdog"; + $links[] = la(t("watchdog"), array("mod" => "watchdog")); } return $links ? $links : array(); @@ -40,7 +40,7 @@ function watchdog_overview($type) { $output .= " datemessageuseroperations"; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { - $output .= " ". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."wid\">details"; + $output .= " ". 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 .= ""; @@ -70,7 +70,16 @@ function watchdog_admin() { if (user_access("administer watchdog")) { - print "user messages | regular messages | special messages | warning messages | error messages | httpd messages | overview | help
"; + $links[] = la(t("user messages"), array("mod" => "watchdog", "type" => "user")); + $links[] = la(t("regular messages"), array("mod" => "watchdog", "type" => "regular")); + $links[] = la(t("special messages"), array("mod" => "watchdog", "type" => "special")); + $links[] = la(t("warning messages"), array("mod" => "watchdog", "type" => "warning")); + $links[] = la(t("error messages"), array("mod" => "watchdog", "type" => "error")); + $links[] = la(t("httpd messages"), array("mod" => "watchdog", "type" => "httpd")); + $links[] = la(t("overview"), array("mod" => "watchdog")); + $links[] = la(t("help"), array("mod" => "watchdog", "op" => "help")); + + print "".implode(" | ", $links)."
"; switch ($op) { case "help": -- cgit v1.2.3