commit 03cd83fbeb974d8b60265f83a38801830f85218e
parent 53f29f83815ff1ea1aa69b3c496a6088a0aa3a9c
Author: Felicitus <felicitus@felicitus.org>
Date: Tue, 12 Jul 2011 12:48:43 +0200
Added partkeepr category
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cronjobs/CreateRSSFeed.php b/cronjobs/CreateRSSFeed.php
@@ -38,18 +38,22 @@ foreach ($parts as $part) {
$item = $rssDOM->createElement("item");
$title = $rssDOM->createElement("title");
-
$titleContent = $rssDOM->createTextNode($part->getName());
$title->appendChild($titleContent);
$description = $rssDOM->createElement("description");
- $descriptionContent = $rssDOM->createTextNode($part->getCategoryPath());
+ $descriptionContent = $rssDOM->createTextNode($part->getComment());
$description->appendChild($descriptionContent);
+ $category = $rssDOM->createElement("partkeepr:category");
+ $categoryContent = $rssDOM->createTextNode($part->getCategoryPath());
+ $category->appendChild($categoryContent);
+
$pubDate = $rssDOM->createElement("pubDate", $part->getCreateDate()->format(DATE_RFC822));
$item->appendChild($title);
$item->appendChild($description);
+ $item->appendChild($category);
$item->appendChild($pubDate);
$channel->appendChild($item);