diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-07-11 23:36:24 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-07-11 23:36:24 +0200 |
commit | 4ab889ea63838db0bbb33dd0d316eac03ab69cf2 (patch) | |
tree | a65c09a7a415718463a1ed3bdbd82dc3f5ce7081 /inc/feedcreator.class.php | |
parent | 8fe3bb00af38a1790e3c2b30eb655fec12e19653 (diff) | |
download | rpg-4ab889ea63838db0bbb33dd0d316eac03ab69cf2.tar.gz rpg-4ab889ea63838db0bbb33dd0d316eac03ab69cf2.tar.bz2 |
improved feed creation
The feed now can export diff views (unified and HTML) as well as full HTML
page content.
Some things might be broken. Everybody please test it!
darcs-hash:20070711213624-7ad00-49359417127fdbd6e31374738509110271b6b351.gz
Diffstat (limited to 'inc/feedcreator.class.php')
-rw-r--r-- | inc/feedcreator.class.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/feedcreator.class.php b/inc/feedcreator.class.php index bbe3220e1..76d2580a5 100644 --- a/inc/feedcreator.class.php +++ b/inc/feedcreator.class.php @@ -916,7 +916,12 @@ class RSSCreator091 extends FeedCreator { $feed.= " <pubDate>".htmlspecialchars($pubDate->rfc822())."</pubDate>\n"; } if ($this->category!="") { - $feed.= " <category>".htmlspecialchars($this->category)."</category>\n"; + // Changed for DokuWiki: multiple categories are possible + if(is_array($this->category)) foreach($this->category as $cat){ + $feed.= " <category>".htmlspecialchars($cat)."</category>\n"; + }else{ + $feed.= " <category>".htmlspecialchars($this->category)."</category>\n"; + } } if ($this->docs!="") { $feed.= " <docs>".FeedCreator::iTrunc(htmlspecialchars($this->docs),500)."</docs>\n"; |