]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / regmod.php
index 3f6f0e04e3253e6073f686548e16450b3374d225..e03f28e85b098175dd65bea15ef4712f27b1326e 100644 (file)
@@ -13,11 +13,9 @@ use Friendica\Model\Register;
 use Friendica\Model\User;
 use Friendica\Module\Login;
 
-require_once 'include/enotify.php';
-
 function user_allow($hash)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $register = Register::getByHash($hash);
        if (!DBA::isResult($register)) {
@@ -101,11 +99,11 @@ function regmod_content(App $a)
 
        if ($cmd === 'deny') {
                user_deny($hash);
-               goaway('admin/users/');
+               $a->internalRedirect('admin/users/');
        }
 
        if ($cmd === 'allow') {
                user_allow($hash);
-               goaway('admin/users/');
+               $a->internalRedirect('admin/users/');
        }
 }