1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-04-21 10:15:41 +02:00

enclosure method called on wrong objects

This commit is contained in:
Alessandro Cosentino 2013-04-09 19:38:59 +02:00
parent 4c7c12584c
commit bdb241340a

View File

@ -94,8 +94,8 @@ class FeedFetcher implements IFeedFetcher {
if($enclosure !== null) {
$enclosureType = $enclosure->get_type();
if(stripos($enclosureType, "audio/") !== false) {
$enclosure->setEnclosureMime($enclosureType);
$enclosure->setEnclosureLink($enclosure->get_link());
$item->setEnclosureMime($enclosureType);
$item->setEnclosureLink($enclosure->get_link());
}
}