mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[bridges] Change all occurrences of the Item object to array
This commit is contained in:
@@ -33,10 +33,10 @@ class CryptomeBridge extends BridgeAbstract{
|
||||
|
||||
foreach($html->find('pre') as $element) {
|
||||
for ( $i = 0; $i < $num; ++$i ) {
|
||||
$item = new \Item();
|
||||
$item->uri = $link.substr($element->find('a', $i)->href, 20);
|
||||
$item->title = substr($element->find('b', $i)->plaintext, 22);
|
||||
$item->content = preg_replace('#http://cryptome.org/#', $link, $element->find('b', $i)->innertext);
|
||||
$item = array();
|
||||
$item['uri'] = $link.substr($element->find('a', $i)->href, 20);
|
||||
$item['title'] = substr($element->find('b', $i)->plaintext, 22);
|
||||
$item['content'] = preg_replace('#http://cryptome.org/#', $link, $element->find('b', $i)->innertext);
|
||||
$this->items[] = $item;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user