]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/EmailRegistration/actions/emailregister.php
common_redirect and clientError exits, so refactor
[quix0rs-gnu-social.git] / plugins / EmailRegistration / actions / emailregister.php
index 5eaf84ad5402859ea3916a8b311459991bee9993..39eb76d599432b9fc17a7c55906b2d482573e90f 100644 (file)
@@ -332,9 +332,9 @@ class EmailregisterAction extends Action
         }
 
         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.
         }
     }