From 88521f188e8444ef2e5591ecc55599f10148cc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 11:59:34 +0200 Subject: [PATCH] [BlaguesDeMerdeBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/BlaguesDeMerdeBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/BlaguesDeMerdeBridge.php b/bridges/BlaguesDeMerdeBridge.php index 5d1b277..e0f65e1 100644 --- a/bridges/BlaguesDeMerdeBridge.php +++ b/bridges/BlaguesDeMerdeBridge.php @@ -8,7 +8,8 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{ public function collectData(){ - $html = $this->getSimpleHTMLDOM('http://www.blaguesdemerde.fr/') or $this->returnServerError('Could not request BDM.'); + $html = $this->getSimpleHTMLDOM($this->uri) + or $this->returnServerError('Could not request BDM.'); foreach($html->find('article.joke_contener') as $element) { $item = array();