if (!empty($cur)) {
common_redirect(common_local_url('all', array('nickname' => $cur->nickname)));
- return;
}
switch ($this->state) {
}
if (Event::handle('StartRegisterSuccess', array($this))) {
- common_redirect(common_local_url('doc', array('title' => 'welcome')),
- 303);
Event::handle('EndRegisterSuccess', array($this));
+ common_redirect(common_local_url('doc', array('title' => 'welcome')), 303);
+ // common_redirect exits, so we can't run the event _after_ it of course.
}
}