Update OPDS feed to use the new method getPubDate

This commit is contained in:
Sébastien Lucas 2013-02-20 21:31:58 +01:00
parent 4820ad3db3
commit 14207672fa

View file

@ -207,7 +207,7 @@ class OPDSRenderer
self::getXmlStream ()->writeAttribute ("label", $category->name); self::getXmlStream ()->writeAttribute ("label", $category->name);
self::getXmlStream ()->endElement (); self::getXmlStream ()->endElement ();
} }
if (!is_null ($entry->book->pubdate)) { if ($entry->book->getPubDate () != "") {
self::getXmlStream ()->startElement ("dcterms:issued"); self::getXmlStream ()->startElement ("dcterms:issued");
self::getXmlStream ()->text (date ("Y-m-d", $entry->book->pubdate)); self::getXmlStream ()->text (date ("Y-m-d", $entry->book->pubdate));
self::getXmlStream ()->endElement (); self::getXmlStream ()->endElement ();