summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-04-09 15:25:07 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-04-09 15:25:07 +0200
commit26d75eef3ac77f55d63b06c86be12de47fcdf4ac (patch)
treef22bcc8fbb819225e6b93216970eea5091eafe85 /feed.php
parentc19c91735c84cbf928b8a7717a4701fdc22b27ce (diff)
downloadrpg-26d75eef3ac77f55d63b06c86be12de47fcdf4ac.tar.gz
rpg-26d75eef3ac77f55d63b06c86be12de47fcdf4ac.tar.bz2
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
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php10
1 files changed, 9 insertions, 1 deletions
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