1
0
Fork 0
forked from blallo/rss-bridge

[PlanetLibreBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 21:52:56 +02:00
parent 75f312ea7b
commit 662c1b6410

View file

@ -13,7 +13,8 @@ class PlanetLibreBridge extends BridgeAbstract{
}
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://www.planet-libre.org/') or $this->returnServerError('Could not request PlanetLibre.');
$html = $this->getSimpleHTMLDOM($this->uri)
or $this->returnServerError('Could not request PlanetLibre.');
$limit = 0;
foreach($html->find('div.post') as $element) {
if($limit < 5) {