From 4d620a19fcf8ad3d061c5f3b1beba5b24bdada4b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 24 Jul 2007 00:03:36 +0200 Subject: fix for multiple categories in feeds darcs-hash:20070723220336-7ad00-cab3ea1686c6b95ac205f628c88d003f480186cc.gz --- inc/feedcreator.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/feedcreator.class.php b/inc/feedcreator.class.php index 76d2580a5..ba6b4d389 100644 --- a/inc/feedcreator.class.php +++ b/inc/feedcreator.class.php @@ -956,8 +956,14 @@ class RSSCreator091 extends FeedCreator { } */ if ($this->items[$i]->category!="") { - $feed.= " ".htmlspecialchars($this->items[$i]->category)."\n"; + // Changed for DokuWiki: multiple categories are possible + if(is_array($this->items[$i]->category)) foreach($this->items[$i]->category as $cat){ + $feed.= " ".htmlspecialchars($cat)."\n"; + }else{ + $feed.= " ".htmlspecialchars($this->items[$i]->category)."\n"; + } } + if ($this->items[$i]->comments!="") { $feed.= " ".htmlspecialchars($this->items[$i]->comments)."\n"; } -- cgit v1.2.3