diff options
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/node.module b/modules/node.module index be77614f4..6387a6a90 100644 --- a/modules/node.module +++ b/modules/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 .= "</rss>\n"; + header("Content-Type: text/xml"); + print $output; } |