summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-03-06 16:17:48 +0000
committerDries Buytaert <dries@buytaert.net>2004-03-06 16:17:48 +0000
commitccc9276f45705221a715b25c7dca4edf9a9c689c (patch)
tree28f91856b4fd0cc470c36795350602e5d94a122a /modules/blog/blog.module
parent8ebedbaa2bc099bd3295a11eebb5e37ebc5f59f4 (diff)
downloadbrdo-ccc9276f45705221a715b25c7dca4edf9a9c689c.tar.gz
brdo-ccc9276f45705221a715b25c7dca4edf9a9c689c.tar.bz2
- 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.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module2
1 files changed, 1 insertions, 1 deletions
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);
}