From c73305f6d64db4cc4f8274ae3379d8a2a22cc35c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 29 Feb 2004 17:16:27 +0000 Subject: - Patch #6129 by Goba: fixed dependencies on search module. --- modules/comment.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 38c25fc45..2917be5ec 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -806,10 +806,12 @@ function comment_link($type, $node = 0, $main = 0) { menu("admin/comment/comments", t("overview"), "comment_admin", 2); menu("admin/comment/comments/0", t("new/updated"), "comment_admin", 1); menu("admin/comment/comments/1", t("approval queue"), "comment_admin", 2); - menu("admin/comment/search", t("search"), "comment_admin", 8); menu("admin/comment/help", t("help"), "comment_help_page", 9); menu("admin/comment/edit", t("edit comment"), "comment_admin", 0, MENU_HIDE); menu("admin/comment/delete", t("delete comment"), "comment_admin", 0, MENU_HIDE); + if (module_exist('search')) { + menu("admin/comment/search", t("search"), "comment_admin", 8); + } // comment settings: if (user_access("administer moderation")) { -- cgit v1.2.3