diff options
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/action.php b/lib/action.php index 6a2f9b0f1..3bfa6ba15 100644 --- a/lib/action.php +++ b/lib/action.php @@ -421,11 +421,13 @@ class Action extends HTMLOutputter // lawsuit $this->menuItem(common_local_url('smssettings'), _('Connect'), _('Connect to SMS, Twitter'), false, 'nav_connect'); } - $this->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')) { + $this->menuItem(common_local_url('invite'), + _('Invite'), + sprintf(_('Invite friends and colleagues to join you on %s'), + common_config('site', 'name')), + false, 'nav_invitecontact'); + } $this->menuItem(common_local_url('logout'), _('Logout'), _('Logout from the site'), false, 'nav_logout'); } |