diff options
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"; |