summaryrefslogtreecommitdiff
path: root/modules/import.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-08 09:07:30 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-08 09:07:30 +0000
commit877143131d291bb889c7e021c59456ad1fe12209 (patch)
treeaf449d49ab8badb4bab0e0eda4d281f8b23e7014 /modules/import.module
parent07f9c4f6365fe83af4b1d39d18e924b9f70a2e0b (diff)
downloadbrdo-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.module2
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&amp;iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."), "class" => "blog-it")) ."</div>";
}