summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-07 06:37:30 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-07 06:37:30 +0000
commitd659fedb389a42173d18bfc2aea2628372579a52 (patch)
tree9a8ae00e584b4915613d876e521250dfc53802ec /modules/blog.module
parentd5fe0cfe2017241094a84e4c4fb6bfdf1928f8eb (diff)
downloadbrdo-d659fedb389a42173d18bfc2aea2628372579a52.tar.gz
brdo-d659fedb389a42173d18bfc2aea2628372579a52.tar.bz2
- Removed the path_uri() function in favor of the $base_url variable and
fixes a handful of bugs introduced by the clean URL patch.
Diffstat (limited to 'modules/blog.module')
-rw-r--r--modules/blog.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 4d92d2d65..a5d3dc521 100644
--- a/modules/blog.module
+++ b/modules/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);
}