summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 4d92d2d65..a5d3dc521 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -53,7 +53,7 @@ function blog_head($main = 0) {
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=\"". url("blog/view/$id") ."\" />";
}
return $output ? $output : array();
@@ -132,7 +132,7 @@ function blog_feed_user($uid = 0) {
$result = db_query("SELECT n.nid, n.title, n.teaser, n.created, u.name, u.uid FROM node n LEFT 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 LIMIT 15", $uid);
$channel["title"] = $account->name. "'s blog";
- $channel["link"] = path_uri() . url("blog/view/$uid");
+ $channel["link"] = url("blog/view/$uid");
$channel["description"] = $term->description;
node_feed($result, $channel);
}
@@ -140,7 +140,7 @@ function blog_feed_user($uid = 0) {
function blog_feed_last() {
$result = db_query("SELECT n.nid, n.title, n.teaser, n.created, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC LIMIT 15");
$channel["title"] = variable_get("site_name", "drupal") ." blogs";
- $channel["link"] = path_uri() . url("blog/view");
+ $channel["link"] = url("blog/view");
$channel["description"] = $term->description;
node_feed($result, $channel);
}