From 29b4f954c2fb2aee0c73c75b1d78cea57574fb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 19:41:58 +0200 Subject: [PATCH] [FierPandaBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/FierPandaBridge.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bridges/FierPandaBridge.php b/bridges/FierPandaBridge.php index b6e00744..4cdfa8d9 100644 --- a/bridges/FierPandaBridge.php +++ b/bridges/FierPandaBridge.php @@ -7,9 +7,7 @@ class FierPandaBridge extends BridgeAbstract { public $description = "Returns latest articles from Fier Panda."; public function collectData(){ - $link = 'http://www.fier-panda.fr/'; - - $html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request Fier Panda.'); + $html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request Fier Panda.'); foreach($html->find('div.container-content article') as $element) { $item = array();