[LeJournalDuGeekBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
0668f79704
commit
69f5c6fa75
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
public function collectData(){
|
||||
$rssFeed = $this->getSimpleHTMLDOM('http://www.journaldugeek.com/rss') or $this->returnServerError('Could not request http://www.journaldugeek.com/rss');
|
||||
$rssFeed = $this->getSimpleHTMLDOM($this->uri.'rss')
|
||||
or $this->returnServerError('Could not request '.$this->uri.'/rss');
|
||||
$limit = 0;
|
||||
|
||||
foreach($rssFeed->find('item') as $element) {
|
||||
|
|
Loading…
Reference in a new issue