Commit 33da658c authored by Dries's avatar Dries
Browse files

- Bugfix: RSS auto-discovery was broken due to clean URL work.  Patch by
  Breyten.
parent 485e1c39
......@@ -48,12 +48,14 @@ function blog_access($op, $node) {
}
function blog_head($main = 0) {
global $id, $mod;
$mod = arg(0);
$id = arg(1);
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=\"". path_uri() . url("blog/view/$id") ." />";
$output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS - ". $account->name. "'s blog\" href=\"". path_uri() . url("blog/view/$id") ."\" />";
}
return $output ? $output : array();
}
......
......@@ -48,12 +48,14 @@ function blog_access($op, $node) {
}
function blog_head($main = 0) {
global $id, $mod;
$mod = arg(0);
$id = arg(1);
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=\"". path_uri() . url("blog/view/$id") ." />";
$output[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS - ". $account->name. "'s blog\" href=\"". path_uri() . url("blog/view/$id") ."\" />";
}
return $output ? $output : array();
}
......
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