mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-21 07:42:10 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -29,11 +29,11 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
||||
$html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Zone Telechargement: '.$url);
|
||||
|
||||
foreach($html->find('item') as $element) {
|
||||
$item = new \Item();
|
||||
$item->title = $element->find('title', 0)->plaintext;
|
||||
$item->uri = str_replace('http://', 'https://', $element->find('guid', 0)->plaintext);
|
||||
$item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
|
||||
$item->content = StripCDATA($element->find('description', 0)->innertext);
|
||||
$item = array();
|
||||
$item['title'] = $element->find('title', 0)->plaintext;
|
||||
$item['uri'] = str_replace('http://', 'https://', $element->find('guid', 0)->plaintext);
|
||||
$item['timestamp'] = strtotime($element->find('pubDate', 0)->plaintext);
|
||||
$item['content'] = StripCDATA($element->find('description', 0)->innertext);
|
||||
$this->items[] = $item;
|
||||
$limit++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user