Merge branch 'testing' into 0.9.x
This commit is contained in:
commit
fee6b78e28
|
@ -267,9 +267,13 @@ class LoginAction extends Action
|
||||||
'user name and password ' .
|
'user name and password ' .
|
||||||
'before changing your settings.');
|
'before changing your settings.');
|
||||||
} else {
|
} else {
|
||||||
return _('Login with your username and password. ' .
|
$prompt = _('Login with your username and password.');
|
||||||
'Don\'t have a username yet? ' .
|
if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) {
|
||||||
'[Register](%%action.register%%) a new account.');
|
$prompt .= ' ';
|
||||||
|
$prompt .= _('Don\'t have a username yet? ' .
|
||||||
|
'[Register](%%action.register%%) a new account.');
|
||||||
|
}
|
||||||
|
return $prompt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -467,7 +467,7 @@ class Action extends HTMLOutputter // lawsuit
|
||||||
_m('MENU', 'Logout'), $tooltip, false, 'nav_logout');
|
_m('MENU', 'Logout'), $tooltip, false, 'nav_logout');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!common_config('site', 'closed')) {
|
if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) {
|
||||||
// TRANS: Tooltip for main menu option "Register"
|
// TRANS: Tooltip for main menu option "Register"
|
||||||
$tooltip = _m('TOOLTIP', 'Create an account');
|
$tooltip = _m('TOOLTIP', 'Create an account');
|
||||||
$this->menuItem(common_local_url('register'),
|
$this->menuItem(common_local_url('register'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user