whitespace in actions/register

darcs-hash:20081202185444-5ed1f-a84761dfb4ffb40d6e90c79d92dcd4b029745300.gz
This commit is contained in:
Evan Prodromou 2008-12-02 13:54:44 -05:00
parent c3b884e707
commit de9ea671fc

View File

@ -62,12 +62,12 @@ class RegisterAction extends Action {
if ($code) { if ($code) {
$invite = Invitation::staticGet($code); $invite = Invitation::staticGet($code);
} }
if (common_config('site', 'inviteonly') && !($code && $invite)) { if (common_config('site', 'inviteonly') && !($code && $invite)) {
$this->client_error(_('Sorry, only invited people can register.')); $this->client_error(_('Sorry, only invited people can register.'));
return; return;
} }
# Input scrubbing # Input scrubbing
$nickname = common_canonical_nickname($nickname); $nickname = common_canonical_nickname($nickname);
@ -166,12 +166,12 @@ class RegisterAction extends Action {
if ($code) { if ($code) {
$invite = Invitation::staticGet($code); $invite = Invitation::staticGet($code);
} }
if (common_config('site', 'inviteonly') && !($code && $invite)) { if (common_config('site', 'inviteonly') && !($code && $invite)) {
$this->client_error(_('Sorry, only invited people can register.')); $this->client_error(_('Sorry, only invited people can register.'));
return; return;
} }
common_show_header(_('Register'), NULL, $error, array($this, 'show_top')); common_show_header(_('Register'), NULL, $error, array($this, 'show_top'));
common_element_start('form', array('method' => 'post', common_element_start('form', array('method' => 'post',
'id' => 'login', 'id' => 'login',