- Bugfix: fixed broken links in the emitted RSS feed discovery code. Modified

patch by Kjartan.
4.2.x
Dries Buytaert 2003-06-15 06:45:53 +00:00
parent a844e58013
commit 677dbd46e2
2 changed files with 4 additions and 6 deletions

View File

@ -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;

View File

@ -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;