1
0
Fork 0
forked from blallo/rss-bridge

[LeMondeInformatiqueBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 12:46:48 +02:00
parent 69f5c6fa75
commit 30f4a3f0f9

View file

@ -28,8 +28,9 @@ class LeMondeInformatiqueBridge extends BridgeAbstract {
return $article_html; return $article_html;
} }
$feedUrl = 'http://www.lemondeinformatique.fr/rss/rss.xml'; $html = $this->getSimpleHTMLDOM($this->uri.'rss/rss.xml')
$html = $this->getSimpleHTMLDOM($feedUrl) or $this->returnServerError('Could not request LeMondeInformatique: '.$feedUrl); or $this->returnServerError('Could not request LeMondeInformatique: '
.$this->uri.'rss/rss.xml');
$limit = 0; $limit = 0;
foreach($html->find('item') as $element) { foreach($html->find('item') as $element) {