summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-15 06:45:53 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-15 06:45:53 +0000
commit677dbd46e24df171a3820598594bfb1c7df9309a (patch)
tree5d0e54463820a7f61920fea7cb593b3c28a3b6e5
parenta844e58013e700e06317e5eb117fccba67b15b6f (diff)
downloadbrdo-677dbd46e24df171a3820598594bfb1c7df9309a.tar.gz
brdo-677dbd46e24df171a3820598594bfb1c7df9309a.tar.bz2
- Bugfix: fixed broken links in the emitted RSS feed discovery code. Modified
patch by Kjartan.
-rw-r--r--modules/blog.module5
-rw-r--r--modules/blog/blog.module5
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;