From ccc9276f45705221a715b25c7dca4edf9a9c689c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 6 Mar 2004 16:17:48 +0000 Subject: - Patch #4902 by Goba: fix URLs in RSS feeds. + Make all channel links absolute. + Always set the $base_url as xml:base, thus providing a solid base for relative URLs. --- modules/blog/blog.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index a39a32fca..e95937607 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -86,7 +86,7 @@ function blog_feed_user($uid = 0) { $result = db_query_range("SELECT n.nid, n.title, n.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND u.uid = %d AND n.status = 1 ORDER BY n.nid DESC", $uid, 0, 15); $channel["title"] = $account->name ."'s blog"; - $channel["link"] = url("blog/view/$uid"); + $channel["link"] = url("blog/view/$uid", NULL, NULL, TRUE); $channel["description"] = $term->description; node_feed($result, $channel); } -- cgit v1.2.3