From ccc9276f45705221a715b25c7dca4edf9a9c689c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 6 Mar 2004 16:17:48 +0000 Subject: - 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. --- modules/node/node.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 71cfee864..3e1a62155 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -994,8 +994,8 @@ function node_feed($nodes = 0, $channel = array()) { ** A generic function for generating RSS feeds from a set of nodes. ** - $nodes should be an object as returned by db_query() which contains ** the nid field. - ** - $channel is an associative array containing title, link, and - ** description keys. + ** - $channel is an associative array containing title, link, + ** description and other keys. The link should be an absolute URL. */ if (!$nodes) { @@ -1023,7 +1023,7 @@ function node_feed($nodes = 0, $channel = array()) { $output = "\n"; $output .= "]>\n"; - $output .= "\n"; + $output .= "\n"; $output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']); $output .= "\n"; -- cgit v1.2.3