Update OPDS feed to use the new method getPubDate
This commit is contained in:
parent
4820ad3db3
commit
14207672fa
|
@ -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 ();
|
||||||
|
|
Loading…
Reference in a new issue