summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-01-07 19:16:59 +0000
committerDries Buytaert <dries@buytaert.net>2003-01-07 19:16:59 +0000
commit33da658c4d2471202553bee37f9db0ef13c23308 (patch)
tree77531a54a78d2f38bfb27299b3373909ee15efd5 /modules/blog.module
parent485e1c394a31165f208b8899a03ba731995ac20d (diff)
downloadbrdo-33da658c4d2471202553bee37f9db0ef13c23308.tar.gz
brdo-33da658c4d2471202553bee37f9db0ef13c23308.tar.bz2
- Bugfix: RSS auto-discovery was broken due to clean URL work. Patch by
Breyten.
Diffstat (limited to 'modules/blog.module')
-rw-r--r--modules/blog.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module
index d08c94f27..ba241b8af 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -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();
}