From a52a5b881acb596ac201a0f619a40d4a7c00f2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 13:36:30 +0200 Subject: [PATCH] [MondeDiplomatique] fix wrong variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/MondeDiploBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/MondeDiploBridge.php b/bridges/MondeDiploBridge.php index 5123ccd..2a6afc4 100644 --- a/bridges/MondeDiploBridge.php +++ b/bridges/MondeDiploBridge.php @@ -3,11 +3,12 @@ class MondeDiploBridge extends BridgeAbstract{ public $maintainer = "Pitchoule"; public $name = 'Monde Diplomatique'; - public $uri = 'http://www.monde-diplomatique.fr'; + public $uri = 'http://www.monde-diplomatique.fr/'; public $description = "Returns most recent results from MondeDiplo."; public function collectData(){ - $html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request MondeDiplo. for : ' . $link); + $html = $this->getSimpleHTMLDOM($this->uri) + or $this->returnServerError('Could not request MondeDiplo. for : ' . $this->uri); foreach($html->find('div.unarticle') as $article) { $element = $article->parent();