diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aggregator.module | 2 | ||||
-rw-r--r-- | modules/aggregator/aggregator.module | 2 | ||||
-rw-r--r-- | modules/import.module | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module index 1926605b4..62d251125 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.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>"; } diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 1926605b4..62d251125 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.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>"; } 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>"; } |