From 69f5c6fa75e445fa0440d603e3a0584955529d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 12:45:11 +0200 Subject: [PATCH] [LeJournalDuGeekBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/LeJournalDuGeekBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php index 370a1892..f1b89a1f 100644 --- a/bridges/LeJournalDuGeekBridge.php +++ b/bridges/LeJournalDuGeekBridge.php @@ -35,7 +35,8 @@ class LeJournalDuGeekBridge extends BridgeAbstract{ } public function collectData(){ - $rssFeed = $this->getSimpleHTMLDOM('http://www.journaldugeek.com/rss') or $this->returnServerError('Could not request http://www.journaldugeek.com/rss'); + $rssFeed = $this->getSimpleHTMLDOM($this->uri.'rss') + or $this->returnServerError('Could not request '.$this->uri.'/rss'); $limit = 0; foreach($rssFeed->find('item') as $element) {