mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-22 08:03:52 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -26,12 +26,12 @@ class DilbertBridge extends BridgeAbstract {
|
||||
$title = 'Dilbert Comic Strip on '.$date;
|
||||
$date = strtotime($date);
|
||||
|
||||
$item = new \Item();
|
||||
$item->uri = $url;
|
||||
$item->title = $title;
|
||||
$item->author = 'Scott Adams';
|
||||
$item->timestamp = $date;
|
||||
$item->content = '<img src="'.$comic.'" alt="'.$img->alt.'" />';
|
||||
$item = array();
|
||||
$item['uri'] = $url;
|
||||
$item['title'] = $title;
|
||||
$item['author'] = 'Scott Adams';
|
||||
$item['timestamp'] = $date;
|
||||
$item['content'] = '<img src="'.$comic.'" alt="'.$img->alt.'" />';
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user