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