Fix tag handling in OPDS (broken in previous commit)

This commit is contained in:
Sébastien Lucas 2012-06-12 08:27:19 +02:00
parent 530155b73a
commit 2e3d44f7a4

View file

@ -172,8 +172,8 @@ class OPDSRenderer
} }
foreach ($entry->book->getTags () as $category) { foreach ($entry->book->getTags () as $category) {
self::getXmlStream ()->startElement ("category"); self::getXmlStream ()->startElement ("category");
self::getXmlStream ()->writeAttribute ("term", $category); self::getXmlStream ()->writeAttribute ("term", $category->name);
self::getXmlStream ()->writeAttribute ("label", $category); self::getXmlStream ()->writeAttribute ("label", $category->name);
self::getXmlStream ()->endElement (); self::getXmlStream ()->endElement ();
} }
if (!is_null ($entry->book->pubdate)) { if (!is_null ($entry->book->pubdate)) {