forked from blallo/rss-bridge
[BlaguesDeMerdeBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
1068f31303
commit
88521f188e
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{
|
|||
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM('http://www.blaguesdemerde.fr/') or $this->returnServerError('Could not request BDM.');
|
||||
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||
or $this->returnServerError('Could not request BDM.');
|
||||
|
||||
foreach($html->find('article.joke_contener') as $element) {
|
||||
$item = array();
|
||||
|
|
Loading…
Reference in a new issue