From a448f5a9b46c5a5e5bcd64072a420bef33161a44 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 8 Jun 2003 16:50:05 +0000 Subject: - Charset simpliciations. Patch #46 by Al. --- modules/node.module | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 1bbc95623..c62be185a 100644 --- a/modules/node.module +++ b/modules/node.module @@ -879,12 +879,11 @@ function node_feed($nodes = 0, $channel = array()) { while ($node = db_fetch_object($nodes)) { $item = node_load(array("nid" => $node->nid)); $link = url("node/view/$item->nid"); - $items .= format_rss_item($item->title, $link, $item->teaser); + $items .= format_rss_item($item->title, $link, ($item->teaser ? $item->teaser : $item->body)); } - $output .= "\n"; + $output .= "\n"; $output .= "]>\n"; - // 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"] = $base_url; -- cgit v1.2.3