diff options
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r-- | modules/watchdog/watchdog.module | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index 20a47077e..a7ed775a8 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -83,7 +83,7 @@ function watchdog_overview($type) { $header = array( array("data" => t("date"), "field" => "w.timestamp", "sort" => "desc"), - array("data" => t("event"), "field" => "w.message"), + array("data" => t("message"), "field" => "w.message"), array("data" => t("user"), "field" => "u.name"), array("data" => t("operations"), "colspan" => "2") ); @@ -132,22 +132,17 @@ function watchdog_view($id) { function watchdog_admin() { - if (user_access("administer watchdog")) { - switch (arg(2)) { - case "help": - $output = watchdog_help(); - break; - case "view": - $output = watchdog_view(arg(3)); - break; - default: - $output = watchdog_overview(arg(2)); - } - print theme("page", $output); - } - else { - print theme("page", message_access()); + switch (arg(2)) { + case "help": + $output = watchdog_help(); + break; + case "view": + $output = watchdog_view(arg(3)); + break; + default: + $output = watchdog_overview(arg(2)); } + print theme("page", $output); } function _watchdog_get_message_types() { |