From 26d75eef3ac77f55d63b06c86be12de47fcdf4ac Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 9 Apr 2006 15:25:07 +0200 Subject: feedcreator changes for ATOM1.0 This patch updates the feedcreator.class.php with a few non official changes found at [1] - the download link didn't work at this page so [2] was used. Some additional minor modifications were done. feed.php now accepts the type darcs-hash:20060409132507-7ad00-8e5986631146eca9606aa1fb48278cb045a5db0a.gz --- feed.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'feed.php') diff --git a/feed.php b/feed.php index 666cd42a1..f7fae8cac 100644 --- a/feed.php +++ b/feed.php @@ -30,16 +30,24 @@ switch ($type){ case 'rss': - $type = 'RSS0.9'; + $type = 'RSS0.91'; + $mime = 'text/xml'; break; case 'rss2': $type = 'RSS2.0'; + $mime = 'text/xml'; break; case 'atom': $type = 'ATOM0.3'; + $mime = 'application/xml'; + break; + case 'atom1': + $type = 'ATOM1.0'; + $mime = 'application/atom+xml'; break; default: $type = 'RSS1.0'; + $mime = 'application/xml'; } // the feed is dynamic - we need a cache for each combo -- cgit v1.2.3