diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-03-07 06:37:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-03-07 06:37:30 +0000 |
commit | d659fedb389a42173d18bfc2aea2628372579a52 (patch) | |
tree | 9a8ae00e584b4915613d876e521250dfc53802ec /modules/node.module | |
parent | d5fe0cfe2017241094a84e4c4fb6bfdf1928f8eb (diff) | |
download | brdo-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/node.module')
-rw-r--r-- | modules/node.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index c99607cc1..e53047e43 100644 --- a/modules/node.module +++ b/modules/node.module @@ -705,6 +705,8 @@ function node_block($op = "list", $delta = 0) { } function node_feed($nodes = 0, $channel = array()) { + global $base_url; + /* ** A generic function for generating RSS feeds from a set of nodes. ** - $nodes should be an object as returned by db_query() which contains @@ -719,7 +721,7 @@ function node_feed($nodes = 0, $channel = array()) { while ($node = db_fetch_object($nodes)) { $item = node_load(array("nid" => $node->nid)); - $link = path_uri() . url("node/view/$item->nid"); + $link = url("node/view/$item->nid"); $items .= format_rss_item($item->title, $link, $item->teaser); } @@ -728,7 +730,7 @@ function node_feed($nodes = 0, $channel = array()) { // NOTE: é - for example - is the correct ISO-8859-1 translation of (e acute) but apparently XML parsers don't (have to) understand it. To solve this problem, we use a DTD that defines commonly used entity such as é. if (!$channel["version"]) $channel["version"] = "0.91"; if (!$channel["title"]) $channel["title"] = variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); - if (!$channel["link"]) $channel["link"] = path_uri(); + if (!$channel["link"]) $channel["link"] = $base_url; if (!$channel["description"]) $channel["description"] = variable_get("site_mission", ""); if (!$channel["language"]) $channel["language"] = "en"; $output .= "<rss version=\"". $channel["version"] . "\">\n"; |