summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/blog.module6
-rw-r--r--modules/blog/blog.module6
2 files changed, 8 insertions, 4 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();
}
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index d08c94f27..ba241b8af 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/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();
}