From 8cc5c175daa9571c9cc214d9d3e286c3d06a4760 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 27 Apr 2011 17:40:51 -0700 Subject: [PATCH] Fix broken event names --- actions/register.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/register.php b/actions/register.php index 47ac062713..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,7 +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', @@ -649,7 +649,7 @@ class RegisterAction extends Action } $this->elementEnd('div'); - Event::handle('onEndRegisterSuccess', array($this)); + Event::handle('EndRegisterSuccess', array($this)); } } -- 2.39.5