summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-19 18:47:56 +0200
committerBrion Vibber <brion@pobox.com>2010-04-19 18:47:56 +0200
commitfee6b78e2896705b831fc98025581405e3e21e27 (patch)
tree8fe8407b2749198346040a88831058da9bc1acf3 /actions
parent83edc126c04c544a577675507e0ca01ca5c2e665 (diff)
parent369885f04f6822355da24595637916e4263db702 (diff)
Merge branch 'testing' into 0.9.x
Diffstat (limited to 'actions')
-rw-r--r--actions/login.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/actions/login.php b/actions/login.php
index 8ea3c800b..dc6352368 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -267,9 +267,13 @@ class LoginAction extends Action
'user name and password ' .
'before changing your settings.');
} else {
- return _('Login with your username and password. ' .
- 'Don\'t have a username yet? ' .
- '[Register](%%action.register%%) a new account.');
+ $prompt = _('Login with your username and password.');
+ if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) {
+ $prompt .= ' ';
+ $prompt .= _('Don\'t have a username yet? ' .
+ '[Register](%%action.register%%) a new account.');
+ }
+ return $prompt;
}
}