forked from GNUsocial/gnu-social
		
	Automatically make Facebook admin panel available if the FacebookBridge
plugin is installed.
This commit is contained in:
		| @@ -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; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user