From: Zach Copley Date: Thu, 24 Feb 2011 21:57:21 +0000 (-0800) Subject: FacebookBridge - Don't hinder autoloading if the Facebook ID and secret aren't set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d50189ec2d7523324a7e724715058c6fb91b7d3;p=quix0rs-gnu-social.git FacebookBridge - Don't hinder autoloading if the Facebook ID and secret aren't set --- diff --git a/plugins/FacebookBridge/FacebookBridgePlugin.php b/plugins/FacebookBridge/FacebookBridgePlugin.php index 7e17c2d7ec..37b931e23e 100644 --- a/plugins/FacebookBridge/FacebookBridgePlugin.php +++ b/plugins/FacebookBridge/FacebookBridgePlugin.php @@ -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; }