summaryrefslogtreecommitdiff
path: root/modules/watchdog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-15 20:09:46 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-15 20:09:46 +0000
commit4b0b2d02eecaa27e3162a0fad9d31bb08f4df53b (patch)
treecf369f7370c1be045e3d48e7a9beb26d1d0f3714 /modules/watchdog
parentae5136e51b87b414c737f4726c367c18db79fc49 (diff)
downloadbrdo-4b0b2d02eecaa27e3162a0fad9d31bb08f4df53b.tar.gz
brdo-4b0b2d02eecaa27e3162a0fad9d31bb08f4df53b.tar.bz2
- Patch by Steven: removed redundant permission checks. These are no longer
required thanks to the new 404 handling.
Diffstat (limited to 'modules/watchdog')
-rw-r--r--modules/watchdog/watchdog.module27
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() {