forked from blallo/rss-bridge
[LeMondeInformatiqueBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
69f5c6fa75
commit
30f4a3f0f9
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue