summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-02-15 11:40:19 +0000
committerDries Buytaert <dries@buytaert.net>2007-02-15 11:40:19 +0000
commitdc5843bd30a614cb074f70750ba2f631e61f8cb8 (patch)
treecd977b194f73b16e3dc1dfb40c9c9c5c1988f47f /modules/blog
parente57b926e8d4385e399731159bd90f862962a86ab (diff)
downloadbrdo-dc5843bd30a614cb074f70750ba2f631e61f8cb8.tar.gz
brdo-dc5843bd30a614cb074f70750ba2f631e61f8cb8.tar.bz2
- Patch #111347 by Steven: refactor url() and l().
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index ffdeeedec..6969dbd16 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -85,7 +85,7 @@ function blog_feed_user($uid = 0) {
$result = db_query_range(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.uid = %d AND n.status = 1 ORDER BY n.created DESC"), $uid, 0, variable_get('feed_default_items', 10));
$channel['title'] = $account->name ."'s blog";
- $channel['link'] = url("blog/$uid", NULL, NULL, TRUE);
+ $channel['link'] = url("blog/$uid", array('absolute' => TRUE));
$channel['description'] = $term->description;
node_feed($result, $channel);
}
@@ -96,7 +96,7 @@ function blog_feed_user($uid = 0) {
function blog_feed_last() {
$result = db_query_range(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, variable_get('feed_default_items', 10));
$channel['title'] = variable_get('site_name', 'Drupal') .' blogs';
- $channel['link'] = url('blog', NULL, NULL, TRUE);
+ $channel['link'] = url('blog', array('absolute' => TRUE));
$channel['description'] = $term->description;
node_feed($result, $channel);
}