Commit 0d35fa4a authored by Dries's avatar Dries
Browse files

- Added some 'header("Content-Type: text/xml")' as suggested by Julian.
parent 8578d947
...@@ -629,6 +629,7 @@ function import_page_fd() { ...@@ -629,6 +629,7 @@ function import_page_fd() {
$output .= "</rssfeeds>\n"; $output .= "</rssfeeds>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -629,6 +629,7 @@ function import_page_fd() { ...@@ -629,6 +629,7 @@ function import_page_fd() {
$output .= "</rssfeeds>\n"; $output .= "</rssfeeds>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -42,6 +42,8 @@ function blog_feed_user($name = 0, $date = 0) { ...@@ -42,6 +42,8 @@ function blog_feed_user($name = 0, $date = 0) {
$output .= format_rss_channel("$name's blog", path_uri() ."module.php?mod=blog&op=view&name=". urlencode($name), "$name's blog", $items); $output .= format_rss_channel("$name's blog", path_uri() ."module.php?mod=blog&op=view&name=". urlencode($name), "$name's blog", $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
...@@ -57,6 +59,8 @@ function blog_feed_last() { ...@@ -57,6 +59,8 @@ function blog_feed_last() {
$output .= format_rss_channel(variable_get("site_name", "drupal") .": user blogs", path_uri() ."module.php?mod=blog", "Recently updated blogs.", $items); $output .= format_rss_channel(variable_get("site_name", "drupal") .": user blogs", path_uri() ."module.php?mod=blog", "Recently updated blogs.", $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -42,6 +42,8 @@ function blog_feed_user($name = 0, $date = 0) { ...@@ -42,6 +42,8 @@ function blog_feed_user($name = 0, $date = 0) {
$output .= format_rss_channel("$name's blog", path_uri() ."module.php?mod=blog&op=view&name=". urlencode($name), "$name's blog", $items); $output .= format_rss_channel("$name's blog", path_uri() ."module.php?mod=blog&op=view&name=". urlencode($name), "$name's blog", $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
...@@ -57,6 +59,8 @@ function blog_feed_last() { ...@@ -57,6 +59,8 @@ function blog_feed_last() {
$output .= format_rss_channel(variable_get("site_name", "drupal") .": user blogs", path_uri() ."module.php?mod=blog", "Recently updated blogs.", $items); $output .= format_rss_channel(variable_get("site_name", "drupal") .": user blogs", path_uri() ."module.php?mod=blog", "Recently updated blogs.", $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -629,6 +629,7 @@ function import_page_fd() { ...@@ -629,6 +629,7 @@ function import_page_fd() {
$output .= "</rssfeeds>\n"; $output .= "</rssfeeds>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -376,6 +376,7 @@ function node_block() { ...@@ -376,6 +376,7 @@ function node_block() {
} }
function node_feed() { 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"); $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)) { while ($node = db_fetch_object($result)) {
...@@ -393,6 +394,8 @@ function node_feed() { ...@@ -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 .= format_rss_channel(variable_get("site_name", "drupal"), path_uri() ."module.php?mod=node&op=feed", variable_get("site_slogan", ""), $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
...@@ -376,6 +376,7 @@ function node_block() { ...@@ -376,6 +376,7 @@ function node_block() {
} }
function node_feed() { 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"); $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)) { while ($node = db_fetch_object($result)) {
...@@ -393,6 +394,8 @@ function node_feed() { ...@@ -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 .= format_rss_channel(variable_get("site_name", "drupal"), path_uri() ."module.php?mod=node&op=feed", variable_get("site_slogan", ""), $items);
$output .= "</rss>\n"; $output .= "</rss>\n";
header("Content-Type: text/xml");
print $output; print $output;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment