Permalink
Browse files

Issue 648 fixed (RSS 2.o compliant)

  • Loading branch information...
nimda562
nimda562 committed Oct 28, 2014
1 parent 4f66c8a commit b4ffb20414853e8fbf5358a2b00ea4960d4437ce
Showing with 4 additions and 1 deletion.
  1. +4 −1 modules/rss/class_rss.php
@@ -173,7 +173,10 @@ public function generateNewsRssFeed() {
$el_item->appendChild($dom->createElement('title', htmlspecialchars($item->title, ENT_NOQUOTES, "UTF-8")));
$el_item->appendChild($dom->createElement('description', htmlspecialchars($item->desc, ENT_NOQUOTES, "UTF-8")));
$el_item->appendChild($dom->createElement('link', $this->link));
$el_item->appendChild($dom->createElement('pubDate', $item->date));
# $el_item->appendChild($dom->createElement('pubDate', $item->date));
$el_item->appendChild($dom->createElement('pubDate', date('r', strtotime($item->date))));
$el_item->appendChild($dom->createElement('guid', $this->link . 'index.php?' . date('U', strtotime($item->date)))); # RSS 2.0 dirty workaround.
$el_channel->appendChild($el_item);
}

0 comments on commit b4ffb20

Please sign in to comment.