diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-19 18:45:50 +0200 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-19 18:45:50 +0200 |
commit | e547a2f54c2a2184d55c57c7712d4d50621f5fc2 (patch) | |
tree | 740118e22f749308fce4a07b005766ab3b457826 /lib/action.php | |
parent | 4f0672a94c0f0d63aba948f1f0ca678a088b8353 (diff) |
Fix ticket #2289: registration links were showing in top nav bar, login page message when site set to invite-only or closed registration, when the 'register' action can't be used.
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php index 0fc3a0dc4..c4d9fd5cb 100644 --- a/lib/action.php +++ b/lib/action.php @@ -464,7 +464,7 @@ class Action extends HTMLOutputter // lawsuit _m('MENU', 'Logout'), $tooltip, false, 'nav_logout'); } else { - if (!common_config('site', 'closed')) { + if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) { // TRANS: Tooltip for main menu option "Register" $tooltip = _m('TOOLTIP', 'Create an account'); // TRANS: Main menu option when not logged in to register a new account |