1
0
Fork 0
forked from blallo/rss-bridge

[GuruMedBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 00:43:03 +02:00
parent 8e3f6dbc73
commit 37d2e75d7d

View file

@ -13,7 +13,8 @@ class GuruMedBridge extends BridgeAbstract{
}
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://gurumed.org/feed') or $this->returnServerError('Could not request Gurumed.');
$html = $this->getSimpleHTMLDOM($this->uri.'feed')
or $this->returnServerError('Could not request Gurumed.');
$limit = 0;
foreach($html->find('item') as $element) {