diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-07-08 09:07:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-07-08 09:07:30 +0000 |
commit | 877143131d291bb889c7e021c59456ad1fe12209 (patch) | |
tree | af449d49ab8badb4bab0e0eda4d281f8b23e7014 /modules/import.module | |
parent | 07f9c4f6365fe83af4b1d39d18e924b9f70a2e0b (diff) | |
download | brdo-877143131d291bb889c7e021c59456ad1fe12209.tar.gz brdo-877143131d291bb889c7e021c59456ad1fe12209.tar.bz2 |
- Bugfix: don't show the "blog it" links when the blog module is disabled.
Patch by Bart Jansens.
Diffstat (limited to 'modules/import.module')
-rw-r--r-- | modules/import.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/import.module b/modules/import.module index 1926605b4..62d251125 100644 --- a/modules/import.module +++ b/modules/import.module @@ -111,7 +111,7 @@ function import_update() { function import_format_item($item, $feed = 0) { global $user; - if ($user->uid && user_access("maintain personal blog")) { + if ($user->uid && module_exist("blog") && user_access("maintain personal blog")) { $output .= "<div class=\"icon\">". l("<img src=\"". theme("image", "blog.gif") ."\" alt=\"". t("blog it") ."\" title=\"". t("blog it") ."\" />", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."), "class" => "blog-it")) ."</div>"; } |