X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fregister.php;h=3fe5e20a131479d94d4818ff9e3e7b6692c84a5f;hb=f4e17c1bdf42643c2bb530228f88809147992e9d;hp=f4ad38ef7ca879bba01a4015d432355a96305452;hpb=335390f2ca33552513df3dd7c002622f4dda457e;p=quix0rs-gnu-social.git diff --git a/actions/register.php b/actions/register.php index f4ad38ef7c..3fe5e20a13 100644 --- a/actions/register.php +++ b/actions/register.php @@ -270,11 +270,11 @@ class RegisterAction extends Action common_rememberme($user); } - Event::handle('EndRegistrationTry', array($this)); - // Re-init language env in case it changed (not yet, but soon) common_init_language(); + Event::handle('EndRegistrationTry', array($this)); + $this->showSuccess(); } else { // TRANS: Form validation error displayed when trying to register with an invalid username or password. @@ -605,8 +605,7 @@ class RegisterAction extends Action */ function showSuccessContent() { - if (Event::handle('onStartRegisterSuccess', array($this))) { - + if (Event::handle('StartRegisterSuccess', array($this))) { $nickname = $this->arg('nickname'); $profileurl = common_local_url('showstream', @@ -650,7 +649,7 @@ class RegisterAction extends Action } $this->elementEnd('div'); - Event::handle('onEndRegisterSuccess', array($this)); + Event::handle('EndRegisterSuccess', array($this)); } }