summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index a14cb385f..8d7479d0e 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -14,6 +14,9 @@
* Call the needed action handlers
*
* @author Andreas Gohr <andi@splitbrain.org>
+ * @triggers ACTION_ACT_PREPROCESS
+ * @triggers ACTION_REGISTER
+ * @triggers ACTION_HEADERS_SEND
*/
function act_dispatch(){
global $INFO;
@@ -48,7 +51,8 @@ function act_dispatch(){
$ACT = act_permcheck($ACT);
//register
- if($ACT == 'register' && register()){
+ $nil = array();
+ if($ACT == 'register' && $_POST['save'] && trigger_event('ACTION_REGISTER', $nil, 'register')){
$ACT = 'login';
}