From 1de7fb748cf93b06be25921d87b613d2aa87c275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sat, 27 Aug 2016 10:58:00 +0200 Subject: [PATCH] [BandcampBridge] remove useless member $request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/BandcampBridge.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php index b9dbaa2..fa64c07 100644 --- a/bridges/BandcampBridge.php +++ b/bridges/BandcampBridge.php @@ -1,8 +1,6 @@ maintainer = "sebsauvage"; @@ -22,8 +20,7 @@ class BandcampBridge extends BridgeAbstract{ $param=$this->parameters[$this->queriedContext]; $html = ''; if (isset($param['tag']['value'])) { - $this->request = $param['tag']['value']; - $html = $this->getSimpleHTMLDOM('http://bandcamp.com/tag/'.urlencode($this->request).'?sort_field=date') or $this->returnServerError('No results for this query.'); + $html = $this->getSimpleHTMLDOM('http://bandcamp.com/tag/'.urlencode($param['tag']['value']).'?sort_field=date') or $this->returnServerError('No results for this query.'); } else { $this->returnClientError('You must specify tag (/tag/...)'); @@ -45,7 +42,9 @@ class BandcampBridge extends BridgeAbstract{ } public function getName(){ - return (!empty($this->request) ? $this->request .' - ' : '') .'Bandcamp Tag'; + $param=$this->parameters[$this->queriedContext]; + + return (!empty($param['tag']['value']) ? $param['tag']['value'] .' - ' : '') .'Bandcamp Tag'; } public function getCacheDuration(){