summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-07-24 00:03:36 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-07-24 00:03:36 +0200
commit4d620a19fcf8ad3d061c5f3b1beba5b24bdada4b (patch)
tree4ba9b6e094a23f2e3d1b5c141ca86767076c2fe0
parentf0ccaebb66cf573f186993c5db767a8b6e9d0000 (diff)
downloadrpg-4d620a19fcf8ad3d061c5f3b1beba5b24bdada4b.tar.gz
rpg-4d620a19fcf8ad3d061c5f3b1beba5b24bdada4b.tar.bz2
fix for multiple categories in feeds
darcs-hash:20070723220336-7ad00-cab3ea1686c6b95ac205f628c88d003f480186cc.gz
-rw-r--r--inc/feedcreator.class.php8
1 files changed, 7 insertions, 1 deletions
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.= " <category>".htmlspecialchars($this->items[$i]->category)."</category>\n";
+ // Changed for DokuWiki: multiple categories are possible
+ if(is_array($this->items[$i]->category)) foreach($this->items[$i]->category as $cat){
+ $feed.= " <category>".htmlspecialchars($cat)."</category>\n";
+ }else{
+ $feed.= " <category>".htmlspecialchars($this->items[$i]->category)."</category>\n";
+ }
}
+
if ($this->items[$i]->comments!="") {
$feed.= " <comments>".htmlspecialchars($this->items[$i]->comments)."</comments>\n";
}