summaryrefslogtreecommitdiff
path: root/plugins/FBConnect
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-07-01 00:50:19 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-07-01 00:50:19 +0000
commit6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (patch)
tree26683f5909d96ab00a5cb6d8e58f374fa99db0ee /plugins/FBConnect
parent015492daace57361c3cdfe91feafdbeb2d2cf6bd (diff)
parentfbb7757c4b546bee7b2bf224e5544f7af3fa7d94 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'plugins/FBConnect')
-rw-r--r--plugins/FBConnect/FBConnectPlugin.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/FBConnect/FBConnectPlugin.php b/plugins/FBConnect/FBConnectPlugin.php
index cd6e9cecf..d45d2718c 100644
--- a/plugins/FBConnect/FBConnectPlugin.php
+++ b/plugins/FBConnect/FBConnectPlugin.php
@@ -273,11 +273,13 @@ class FBConnectPlugin extends Plugin
$action->menuItem(common_local_url('smssettings'),
_('Connect'), _('Connect to SMS, Twitter'), false, 'nav_connect');
}
- $action->menuItem(common_local_url('invite'),
- _('Invite'),
- sprintf(_('Invite friends and colleagues to join you on %s'),
- common_config('site', 'name')),
- false, 'nav_invitecontact');
+ if (common_config('invite', 'enabled')) {
+ $action->menuItem(common_local_url('invite'),
+ _('Invite'),
+ sprintf(_('Invite friends and colleagues to join you on %s'),
+ common_config('site', 'name')),
+ false, 'nav_invitecontact');
+ }
// Need to override the Logout link to make it do FB stuff
if (!empty($fbuid)) {