]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Merge pull request #6342 from annando/notices
[friendica.git] / mod / regmod.php
index 3f6f0e04e3253e6073f686548e16450b3374d225..a772a78ce77e6b4ccdf9f2cc09317572b0defcbc 100644 (file)
@@ -13,8 +13,6 @@ use Friendica\Model\Register;
 use Friendica\Model\User;
 use Friendica\Module\Login;
 
-require_once 'include/enotify.php';
-
 function user_allow($hash)
 {
        $a = get_app();
@@ -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/');
        }
 }