mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 20:30:25 +02:00
[LeMondeInformatiqueBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user