forked from blallo/rss-bridge
[FierPandaBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
4f7fbae861
commit
29b4f954c2
1 changed files with 1 additions and 3 deletions
|
@ -7,9 +7,7 @@ class FierPandaBridge extends BridgeAbstract {
|
|||
public $description = "Returns latest articles from Fier Panda.";
|
||||
|
||||
public function collectData(){
|
||||
$link = 'http://www.fier-panda.fr/';
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request Fier Panda.');
|
||||
$html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request Fier Panda.');
|
||||
|
||||
foreach($html->find('div.container-content article') as $element) {
|
||||
$item = array();
|
||||
|
|
Loading…
Reference in a new issue