From d1755e4363ecebdc1cc4685619eaa8c525f25658 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 6 May 2014 23:43:02 +0200 Subject: [PATCH] Bad variable reference in OembedPlugin --- plugins/Oembed/OembedPlugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 177fd6ed3e..8820b3c505 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -38,19 +38,19 @@ class OembedPlugin extends Plugin 'title'=>'oEmbed'),null); break; case 'shownotice': - $this->element('link',array('rel'=>'alternate', + $action->element('link',array('rel'=>'alternate', 'type'=>'application/json+oembed', 'href'=>common_local_url( 'oembed', array(), - array('format'=>'json','url'=>$this->notice->getUrl())), + array('format'=>'json','url'=>$action->notice->getUrl())), 'title'=>'oEmbed'),null); - $this->element('link',array('rel'=>'alternate', + $action->element('link',array('rel'=>'alternate', 'type'=>'text/xml+oembed', 'href'=>common_local_url( 'oembed', array(), - array('format'=>'xml','url'=>$this->notice->getUrl())), + array('format'=>'xml','url'=>$action->notice->getUrl())), 'title'=>'oEmbed'),null); break; }