diff options
author | Sem <sembrestels@riseup.net> | 2012-11-10 03:11:44 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-11-10 03:11:44 +0100 |
commit | e40468a7aff9a445a5352b509044cb6a3597a341 (patch) | |
tree | f7ba23c55c86384a006999d5adfffb7bb9993ad2 | |
parent | b2232139f13b759e8f5ce62def75eaeaa530a5b6 (diff) | |
download | elgg-e40468a7aff9a445a5352b509044cb6a3597a341.tar.gz elgg-e40468a7aff9a445a5352b509044cb6a3597a341.tar.bz2 |
Fixes #4911. Cleaning register form after last check.
-rw-r--r-- | actions/register.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/register.php b/actions/register.php index f23d5b381..810ceaf27 100644 --- a/actions/register.php +++ b/actions/register.php @@ -30,8 +30,6 @@ if (elgg_get_config('allow_registration')) { $guid = register_user($username, $password, $name, $email, false, $friend_guid, $invitecode); if ($guid) { - elgg_clear_sticky_form('register'); - $new_user = get_entity($guid); // allow plugins to respond to self registration @@ -54,6 +52,7 @@ if (elgg_get_config('allow_registration')) { throw new RegistrationException(elgg_echo('registerbad')); } + elgg_clear_sticky_form('register'); system_message(elgg_echo("registerok", array(elgg_get_site_entity()->name))); // if exception thrown, this probably means there is a validation @@ -76,4 +75,4 @@ if (elgg_get_config('allow_registration')) { register_error(elgg_echo('registerdisabled')); } -forward(REFERER);
\ No newline at end of file +forward(REFERER); |