From d9279692093a3dba472af863de21e840aac8c19c Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 18 Nov 2010 21:55:43 -0800 Subject: [PATCH] Automatically make Facebook admin panel available if the FacebookBridge plugin is installed. --- plugins/FacebookBridge/FacebookBridgePlugin.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/FacebookBridge/FacebookBridgePlugin.php b/plugins/FacebookBridge/FacebookBridgePlugin.php index 80a31d9cb1..8b5d05e983 100644 --- a/plugins/FacebookBridge/FacebookBridgePlugin.php +++ b/plugins/FacebookBridge/FacebookBridgePlugin.php @@ -208,6 +208,19 @@ class FacebookBridgePlugin extends Plugin return true; } + /** + * If the plugin's installed, this should be accessible to admins + */ + function onAdminPanelCheck($name, &$isOK) + { + if ($name == 'facebook') { + $isOK = true; + return false; + } + + return true; + } + /** * Add a Facebook tab to the admin panels * @@ -483,7 +496,7 @@ ENDOFSCRIPT; { $client = new Facebookclient($notice); $client->streamRemove(); - + return true; } -- 2.39.5