diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-04-09 15:25:07 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-04-09 15:25:07 +0200 |
commit | 26d75eef3ac77f55d63b06c86be12de47fcdf4ac (patch) | |
tree | f22bcc8fbb819225e6b93216970eea5091eafe85 /feed.php | |
parent | c19c91735c84cbf928b8a7717a4701fdc22b27ce (diff) | |
download | rpg-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.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |