Commit 677dbd46 authored by Dries's avatar Dries
Browse files

- Bugfix: fixed broken links in the emitted RSS feed discovery code.  Modified
  patch by Kjartan.
parent a844e580
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment