]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
Added response active support to smoothly
[friendica.git] / mod / register.php
index c4dc382cb8d99c174ea34d16f2899f58aeb4362e..6fc5887ef5c32734d27ad3900c3037cfd82016e2 100644 (file)
@@ -64,7 +64,7 @@ function register_post(&$a) {
 
        if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) {
                $url = $a->get_baseurl() . '/profile/' . $user['nickname'];
-               proc_run('php',"include/directory.php","$url");
+               proc_run(PRIORITY_LOW, "include/directory.php", $url);
        }
 
        $using_invites = get_config('system','invitation_only');
@@ -100,6 +100,9 @@ function register_post(&$a) {
                                                 ). EOL
                                );
                        }
+               } else {
+                       info( t('Registration successful.') . EOL ) ;
+                       goaway(z_root());
                }
        }
        elseif($a->config['register_policy'] == REGISTER_APPROVE) {