diff options
-rw-r--r-- | modules/blog.module | 5 | ||||
-rw-r--r-- | modules/blog/blog.module | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/modules/blog.module b/modules/blog.module index 4b503f024..7b96ddc89 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -54,9 +54,8 @@ function blog_head($main = 0) { $output = array(); - if ($mod == "blog" && $id) { - $account = user_load(array("uid" => $id)); - $output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS - ". $account->name. "'s blog\" href=\"". url("blog/view/$id") ."\" />"; + if ($mod == "blog") { + $output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS feed\" href=\"". url("blog/feed/$id") ."\" />"; } return $output; diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 4b503f024..7b96ddc89 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -54,9 +54,8 @@ function blog_head($main = 0) { $output = array(); - if ($mod == "blog" && $id) { - $account = user_load(array("uid" => $id)); - $output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS - ". $account->name. "'s blog\" href=\"". url("blog/view/$id") ."\" />"; + if ($mod == "blog") { + $output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS feed\" href=\"". url("blog/feed/$id") ."\" />"; } return $output; |