From 4ab889ea63838db0bbb33dd0d316eac03ab69cf2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 11 Jul 2007 23:36:24 +0200 Subject: 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 --- inc/feedcreator.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'inc/feedcreator.class.php') 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.= " ".htmlspecialchars($pubDate->rfc822())."\n"; } if ($this->category!="") { - $feed.= " ".htmlspecialchars($this->category)."\n"; + // Changed for DokuWiki: multiple categories are possible + if(is_array($this->category)) foreach($this->category as $cat){ + $feed.= " ".htmlspecialchars($cat)."\n"; + }else{ + $feed.= " ".htmlspecialchars($this->category)."\n"; + } } if ($this->docs!="") { $feed.= " ".FeedCreator::iTrunc(htmlspecialchars($this->docs),500)."\n"; -- cgit v1.2.3