[bridges] Change all occurrences of the Item object to array

This commit is contained in:
logmanoriginal 2016-08-22 18:55:59 +02:00
parent 1f3361c6b4
commit bf0a9d754e
130 changed files with 844 additions and 844 deletions

View file

@ -49,11 +49,11 @@ class SuperbWallpapersBridge extends BridgeAbstract {
foreach($html->find('.wpl .i a') as $element) {
$thumbnail = $element->find('img', 0);
$item = new \Item();
$item->uri = str_replace('200x125', $this->resolution, $thumbnail->src);
$item->timestamp = time();
$item->title = $element->title;
$item->content = $item->title.'<br><a href="'.$item->uri.'">'.$thumbnail.'</a>';
$item = array();
$item['uri'] = str_replace('200x125', $this->resolution, $thumbnail->src);
$item['timestamp'] = time();
$item['title'] = $element->title;
$item['content'] = $item['title'].'<br><a href="'.$item['uri'].'">'.$thumbnail.'</a>';
$this->items[] = $item;
$num++;