]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad variable reference in OembedPlugin
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 6 May 2014 21:43:02 +0000 (23:43 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 6 May 2014 21:43:02 +0000 (23:43 +0200)
plugins/Oembed/OembedPlugin.php

index 177fd6ed3ef4bdce3a760985de53b83439e50ce6..8820b3c505ebf3616d0919ba50981a881e28a46e 100644 (file)
@@ -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;
         }