1
0
Fork 0
forked from blallo/rss-bridge

[FierPandaBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 19:41:58 +02:00
parent 4f7fbae861
commit 29b4f954c2

View file

@ -7,9 +7,7 @@ class FierPandaBridge extends BridgeAbstract {
public $description = "Returns latest articles from Fier Panda."; public $description = "Returns latest articles from Fier Panda.";
public function collectData(){ public function collectData(){
$link = 'http://www.fier-panda.fr/'; $html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request Fier Panda.');
$html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request Fier Panda.');
foreach($html->find('div.container-content article') as $element) { foreach($html->find('div.container-content article') as $element) {
$item = array(); $item = array();