]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
FacebookBridge - Don't hinder autoloading if the Facebook ID and secret aren't set
authorZach Copley <zach@status.net>
Thu, 24 Feb 2011 21:57:21 +0000 (13:57 -0800)
committerZach Copley <zach@status.net>
Thu, 24 Feb 2011 21:57:21 +0000 (13:57 -0800)
plugins/FacebookBridge/FacebookBridgePlugin.php

index 7e17c2d7ecf5d280b5e6981385a17c43ebb913d7..37b931e23ec98a4d238c9792a8c140716f1b4954 100644 (file)
@@ -179,28 +179,22 @@ class FacebookBridgePlugin extends Plugin
         // Always add the admin panel route
         $m->connect('admin/facebook', array('action' => 'facebookadminpanel'));
 
-        // Only add these routes if an application has been setup on
-        // Facebook for the plugin to use.
-        if ($this->hasApplication()) {
-
-            $m->connect(
-                'main/facebooklogin',
-                array('action' => 'facebooklogin')
-            );
-            $m->connect(
-                'main/facebookfinishlogin',
-                array('action' => 'facebookfinishlogin')
-            );
-            $m->connect(
-                'settings/facebook',
-                array('action' => 'facebooksettings')
-            );
-            $m->connect(
-                'facebook/deauthorize',
-                array('action' => 'facebookdeauthorize')
-            );
-
-        }
+        $m->connect(
+            'main/facebooklogin',
+            array('action' => 'facebooklogin')
+        );
+        $m->connect(
+            'main/facebookfinishlogin',
+            array('action' => 'facebookfinishlogin')
+        );
+        $m->connect(
+            'settings/facebook',
+            array('action' => 'facebooksettings')
+        );
+        $m->connect(
+            'facebook/deauthorize',
+            array('action' => 'facebookdeauthorize')
+        );
 
         return true;
     }