mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 20:02:03 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -19,11 +19,11 @@ class PlanetLibreBridge extends BridgeAbstract{
|
||||
$limit = 0;
|
||||
foreach($html->find('div.post') as $element) {
|
||||
if($limit < 5) {
|
||||
$item = new \Item();
|
||||
$item->title = $element->find('h1', 0)->plaintext;
|
||||
$item->uri = $element->find('a', 0)->href;
|
||||
$item->timestamp = strtotime(str_replace('/', '-', $element->find('div[class="post-date"]', 0)->plaintext));
|
||||
$item->content = $this->PlanetLibreExtractContent($item->uri);
|
||||
$item = array();
|
||||
$item['title'] = $element->find('h1', 0)->plaintext;
|
||||
$item['uri'] = $element->find('a', 0)->href;
|
||||
$item['timestamp'] = strtotime(str_replace('/', '-', $element->find('div[class="post-date"]', 0)->plaintext));
|
||||
$item['content'] = $this->PlanetLibreExtractContent($item['uri']);
|
||||
$this->items[] = $item;
|
||||
$limit++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user