Bugfix: There are some problems with Friendica installed in subdirectories
This commit is contained in:
parent
4663df5b2b
commit
0e9b2c132a
2 changed files with 3 additions and 3 deletions
|
@ -857,7 +857,7 @@ function admin_page_users_post(&$a){
|
||||||
$nu_nickname = ( x($_POST, 'new_user_nickname') ? $_POST['new_user_nickname'] : '');
|
$nu_nickname = ( x($_POST, 'new_user_nickname') ? $_POST['new_user_nickname'] : '');
|
||||||
$nu_email = ( x($_POST, 'new_user_email') ? $_POST['new_user_email'] : '');
|
$nu_email = ( x($_POST, 'new_user_email') ? $_POST['new_user_email'] : '');
|
||||||
|
|
||||||
check_form_security_token_redirectOnErr($a->get_baseurl().'/admin/users', 'admin_users');
|
check_form_security_token_redirectOnErr('/admin/users', 'admin_users');
|
||||||
|
|
||||||
if (!($nu_name==="") && !($nu_email==="") && !($nu_nickname==="")) {
|
if (!($nu_name==="") && !($nu_email==="") && !($nu_nickname==="")) {
|
||||||
require_once('include/user.php');
|
require_once('include/user.php');
|
||||||
|
|
|
@ -121,13 +121,13 @@ function regmod_content(&$a) {
|
||||||
|
|
||||||
if($cmd === 'deny') {
|
if($cmd === 'deny') {
|
||||||
user_deny($hash);
|
user_deny($hash);
|
||||||
goaway("/admin/users/");
|
goaway($a->get_baseurl()."/admin/users/");
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($cmd === 'allow') {
|
if($cmd === 'allow') {
|
||||||
user_allow($hash);
|
user_allow($hash);
|
||||||
goaway("/admin/users/");
|
goaway($a->get_baseurl()."/admin/users/");
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue