From b5c432d66c637f72e403cabc3cadde17bff4447b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 01:02:44 +0200 Subject: [PATCH] [InstagramBridge] fix getName() + code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/InstagramBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index 4551e27..bec19b2 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -46,7 +46,7 @@ class InstagramBridge extends BridgeAbstract{ { $item = array(); - $item['uri'] = "https://instagram.com/p/".$media->code."/"; + $item['uri'] = $this->uri.'/p/'.$media->code.'/'; $item['content'] = ''; if (isset($media->caption)) { @@ -61,7 +61,7 @@ class InstagramBridge extends BridgeAbstract{ } public function getName(){ - return $this->param['u']['value'] .' - Instagram Bridge'; + return $this->getInput('u') .' - Instagram Bridge'; } public function getURI(){