From 33da658c4d2471202553bee37f9db0ef13c23308 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Jan 2003 19:16:59 +0000 Subject: - Bugfix: RSS auto-discovery was broken due to clean URL work. Patch by Breyten. --- modules/blog/blog.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/blog') 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[] = "name. "'s blog\" href=\"". path_uri() . url("blog/view/$id") ." />"; + $output[] = "name. "'s blog\" href=\"". path_uri() . url("blog/view/$id") ."\" />"; } + return $output ? $output : array(); } -- cgit v1.2.3