[fix] in RSS, link to original article

This commit is contained in:
Nicolas Lœuillet 2014-03-14 09:35:48 +01:00
parent 8d7cd2ccd5
commit ed02e38e1d

View file

@ -1164,7 +1164,7 @@ class Poche
foreach ($entries as $entry) { foreach ($entries as $entry) {
$newItem = $feed->createNewItem(); $newItem = $feed->createNewItem();
$newItem->setTitle($entry['title']); $newItem->setTitle($entry['title']);
$newItem->setLink(Tools::getPocheUrl() . '?view=view&id=' . $entry['id']); $newItem->setLink($entry['url']);
$newItem->setDate(time()); $newItem->setDate(time());
$newItem->setDescription($entry['content']); $newItem->setDescription($entry['content']);
$feed->addItem($newItem); $feed->addItem($newItem);