summaryrefslogtreecommitdiff
path: root/modules/watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'modules/watchdog')
-rw-r--r--modules/watchdog/watchdog.module10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index e0b1c38d2..e7ac001c1 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -52,13 +52,11 @@ function watchdog_perm() {
function watchdog_link($type) {
if ($type == "system") {
if (user_access("administer watchdog")) {
- if (arg(0) == 'admin') { // avoid SQL queries if possible
- menu("admin/watchdog", t("logs"), "watchdog_admin", 7);
- menu("admin/watchdog/view", t("view details"), "watchdog_admin", 0, MENU_HIDE);
+ menu("admin/watchdog", t("logs"), "watchdog_admin", 7);
+ menu("admin/watchdog/view", t("view details"), "watchdog_admin", 0, MENU_HIDE, MENU_LOCKED);
- foreach (_watchdog_get_message_types() as $type) {
- menu("admin/watchdog/$type", t($type), "watchdog_admin");
- }
+ foreach (_watchdog_get_message_types() as $type) {
+ menu("admin/watchdog/$type", t($type), "watchdog_admin");
}
}
}