diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-29 17:16:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-29 17:16:27 +0000 |
commit | c73305f6d64db4cc4f8274ae3379d8a2a22cc35c (patch) | |
tree | bd0f148f221b23f72f1a5ab9e354bbc2bd3d5b4a /modules/comment | |
parent | 7d0eb5376d035f05eef56c21805ddf6280fe8ebc (diff) | |
download | brdo-c73305f6d64db4cc4f8274ae3379d8a2a22cc35c.tar.gz brdo-c73305f6d64db4cc4f8274ae3379d8a2a22cc35c.tar.bz2 |
- Patch #6129 by Goba: fixed dependencies on search module.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 38c25fc45..2917be5ec 100644 --- a/modules/comment/comment.module +++ b/modules/comment/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")) { |