mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
parent
1f3361c6b4
commit
bf0a9d754e
130 changed files with 844 additions and 844 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue