From 83fad77a08e800913a00718debed72049baca488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 23:43:19 +0200 Subject: [PATCH] [VineBridge] code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/VineBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/VineBridge.php b/bridges/VineBridge.php index 0ad7cb0..e1ae70c 100644 --- a/bridges/VineBridge.php +++ b/bridges/VineBridge.php @@ -15,9 +15,10 @@ class VineBridge extends BridgeAbstract { public function collectData(){ $html = ''; - $uri = 'http://vine.co/u/'.$this->getInput('u').'?mode=list'; + $uri = $this->uri.'/u/'.$this->getInput('u').'?mode=list'; - $html = $this->getSimpleHTMLDOM($uri) or $this->returnServerError('No results for this query.'); + $html = $this->getSimpleHTMLDOM($uri) + or $this->returnServerError('No results for this query.'); foreach($html->find('.post') as $element) { $a = $element->find('a', 0);