From 30f4a3f0f9547171c74a80c1687b580ac18b6d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 12:46:48 +0200 Subject: [PATCH] [LeMondeInformatiqueBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/LeMondeInformatiqueBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/LeMondeInformatiqueBridge.php b/bridges/LeMondeInformatiqueBridge.php index a1aadab1..b744e76e 100644 --- a/bridges/LeMondeInformatiqueBridge.php +++ b/bridges/LeMondeInformatiqueBridge.php @@ -28,8 +28,9 @@ class LeMondeInformatiqueBridge extends BridgeAbstract { return $article_html; } - $feedUrl = 'http://www.lemondeinformatique.fr/rss/rss.xml'; - $html = $this->getSimpleHTMLDOM($feedUrl) or $this->returnServerError('Could not request LeMondeInformatique: '.$feedUrl); + $html = $this->getSimpleHTMLDOM($this->uri.'rss/rss.xml') + or $this->returnServerError('Could not request LeMondeInformatique: ' + .$this->uri.'rss/rss.xml'); $limit = 0; foreach($html->find('item') as $element) {