]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/FBConnect/FBC_XDReceiver.php
Extract out Facebook app stuff into a plugin
[quix0rs-gnu-social.git] / plugins / FBConnect / FBC_XDReceiver.php
index d9677fca7b4b2531c852fb14f78fd132205cfa8f..2bc790d5a04999ae3395a76f1e44705ba7f0ebaa 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if (!defined('LACONICA')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -56,10 +56,7 @@ class FBC_XDReceiverAction extends Action
                                           'lang' => $language));
         $this->elementStart('head');
         $this->element('title', null, 'cross domain receiver page');
-        $this->element('script',
-            array('src' =>
-                'http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js',
-                'type' => 'text/javascript'), '');
+        $this->script('http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js');
         $this->elementEnd('head');
         $this->elementStart('body');
         $this->elementEnd('body');