From 0d35fa4ab5e809bde52daffaf225f07390118303 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Aug 2001 06:52:50 +0000 Subject: - Added some 'header("Content-Type: text/xml")' as suggested by Julian. --- modules/node/node.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index be77614f4..6387a6a90 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -376,6 +376,7 @@ function node_block() { } function node_feed() { + $result = db_query("SELECT nid, type FROM node WHERE promote = '1' AND status = '". node_status("posted") ."' ORDER BY timestamp DESC LIMIT 15"); while ($node = db_fetch_object($result)) { @@ -393,6 +394,8 @@ function node_feed() { $output .= format_rss_channel(variable_get("site_name", "drupal"), path_uri() ."module.php?mod=node&op=feed", variable_get("site_slogan", ""), $items); $output .= "\n"; + header("Content-Type: text/xml"); + print $output; } -- cgit v1.2.3