Bad variable reference in OembedPlugin

This commit is contained in:
Mikael Nordfeldth 2014-05-06 23:43:02 +02:00
parent 621533a7c2
commit d1755e4363

View File

@ -38,19 +38,19 @@ class OembedPlugin extends Plugin
'title'=>'oEmbed'),null); 'title'=>'oEmbed'),null);
break; break;
case 'shownotice': case 'shownotice':
$this->element('link',array('rel'=>'alternate', $action->element('link',array('rel'=>'alternate',
'type'=>'application/json+oembed', 'type'=>'application/json+oembed',
'href'=>common_local_url( 'href'=>common_local_url(
'oembed', 'oembed',
array(), array(),
array('format'=>'json','url'=>$this->notice->getUrl())), array('format'=>'json','url'=>$action->notice->getUrl())),
'title'=>'oEmbed'),null); 'title'=>'oEmbed'),null);
$this->element('link',array('rel'=>'alternate', $action->element('link',array('rel'=>'alternate',
'type'=>'text/xml+oembed', 'type'=>'text/xml+oembed',
'href'=>common_local_url( 'href'=>common_local_url(
'oembed', 'oembed',
array(), array(),
array('format'=>'xml','url'=>$this->notice->getUrl())), array('format'=>'xml','url'=>$action->notice->getUrl())),
'title'=>'oEmbed'),null); 'title'=>'oEmbed'),null);
break; break;
} }