summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 478449ee1..3468d5354 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -248,8 +248,6 @@ function blog_link($type, $node = 0, $main) {
if ($type == "system") {
if (user_access("maintain personal blog")) {
menu("node/add/blog", t("blog entry"), "node_page", 0);
- }
- if (user_access("maintain personal blog")) {
menu("blog/". $user->uid, t("my blog"), "blog_page", 1);
}
if (user_access("access content")) {
@@ -262,12 +260,10 @@ function blog_link($type, $node = 0, $main) {
}
if ($type == "node" && $node->type == "blog") {
- global $mod, $op, $id;
-
if (blog_access("update", $node)) {
$links[] = l(t("edit this blog entry"), "node/edit/$node->nid", array("title" => t("Edit this blog entry.")));
}
- elseif (empty($id)) {
+ elseif (arg(0) != 'blog' && arg(1) != $node->uid) {
$links[] = l(t("%username's blog", array("%username" => $node->name)), "blog/$node->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $node->name))));
}
}