summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-07-08 09:07:46 +0000
committerDries Buytaert2003-07-08 09:07:46 +0000
commit5d1859e0587b23e2e06807a5ba2771b0ef6b2914 (patch)
treef8be7252195187ecf4326f0a4d2b2118d27349a7
parenta47682563209b544fa7f5c3310126a6280160d5f (diff)
- Bugfix: don't show the "blog it" links when the blog module is disabled.
Patch by Bart Jansens.
-rw-r--r--modules/import.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/import.module b/modules/import.module
index 1926605..62d2511 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>";
}