function createNewUser()
{
+ if (!Event::handle('StartRegistrationTry', array($this))) {
+ return;
+ }
+
if (common_config('site', 'closed')) {
// TRANS: Client error trying to register with registrations not allowed.
$this->clientError(_m('Registration not allowed.'));
__FILE__
);
+ Event::handle('EndRegistrationTry', array($this));
+
$this->goHome($user->nickname);
}