diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 12:58:49 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-01 12:58:49 -0400 |
commit | 721ba6c88f3c89c3efcc8e5f0c9169d94911825d (patch) | |
tree | f1b07dfc50858d98258a3043e3c6dbf4f00a22e3 /plugins/FBConnect/FBConnectPlugin.php | |
parent | 8a8390c1a78a2586bb2e9e10bfcb3502739d8d76 (diff) | |
parent | 6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'plugins/FBConnect/FBConnectPlugin.php')
-rw-r--r-- | plugins/FBConnect/FBConnectPlugin.php | 12 |
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)) { |