[InstagramBridge] fix getName() + code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 01:02:44 +02:00
parent 39d980dd3d
commit b5c432d66c
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class InstagramBridge extends BridgeAbstract{
{ {
$item = array(); $item = array();
$item['uri'] = "https://instagram.com/p/".$media->code."/"; $item['uri'] = $this->uri.'/p/'.$media->code.'/';
$item['content'] = '<img src="' . htmlentities($media->display_src) . '" />'; $item['content'] = '<img src="' . htmlentities($media->display_src) . '" />';
if (isset($media->caption)) if (isset($media->caption))
{ {
@ -61,7 +61,7 @@ class InstagramBridge extends BridgeAbstract{
} }
public function getName(){ public function getName(){
return $this->param['u']['value'] .' - Instagram Bridge'; return $this->getInput('u') .' - Instagram Bridge';
} }
public function getURI(){ public function getURI(){