summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-08-14 06:52:50 +0000
committerDries Buytaert <dries@buytaert.net>2001-08-14 06:52:50 +0000
commit0d35fa4ab5e809bde52daffaf225f07390118303 (patch)
tree3224094be8d46b7a6bd2368fa25dd32ebedccd42 /modules/blog/blog.module
parent8578d947a48728805b62d88ab105ab5ccb2db9bf (diff)
downloadbrdo-0d35fa4ab5e809bde52daffaf225f07390118303.tar.gz
brdo-0d35fa4ab5e809bde52daffaf225f07390118303.tar.bz2
- Added some 'header("Content-Type: text/xml")' as suggested by Julian.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index f5504bccb..a4d1f302f 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -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 .= "</rss>\n";
+ header("Content-Type: text/xml");
+
print $output;
}
@@ -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 .= "</rss>\n";
+ header("Content-Type: text/xml");
+
print $output;
}