Merge pull request #9511 from MrPetovan/bug/9501-admin-users-fixes
Fix redirect/form paths in Module\Admin\Users\Index|Active
This commit is contained in:
commit
5ca90e5a74
|
@ -88,13 +88,13 @@ class Active extends BaseUsers
|
|||
notice(DI::l10n()->t('You can\'t remove yourself'));
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('admin/users');
|
||||
DI::baseUrl()->redirect('admin/users/active');
|
||||
break;
|
||||
case 'block':
|
||||
self::checkFormSecurityTokenRedirectOnError('admin/users/active', 'admin_users_active', 't');
|
||||
User::block($uid);
|
||||
notice(DI::l10n()->t('User "%s" blocked', $user['username']));
|
||||
DI::baseUrl()->redirect(DI::baseUrl()->get(true));
|
||||
DI::baseUrl()->redirect('admin/users/active');
|
||||
break;
|
||||
}
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 100);
|
||||
|
@ -154,7 +154,7 @@ class Active extends BaseUsers
|
|||
|
||||
// values //
|
||||
'$baseurl' => DI::baseUrl()->get(true),
|
||||
'$query_string' => DI::baseUrl()->get(true),
|
||||
'$query_string' => DI::args()->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
'$count' => $count,
|
||||
|
|
|
@ -101,7 +101,7 @@ class Index extends BaseUsers
|
|||
self::checkFormSecurityTokenRedirectOnError('admin/users', 'admin_users', 't');
|
||||
User::block($uid);
|
||||
notice(DI::l10n()->t('User "%s" blocked', $user['username']));
|
||||
DI::baseUrl()->redirect(DI::baseUrl()->get(true));
|
||||
DI::baseUrl()->redirect('admin/users');
|
||||
break;
|
||||
case 'unblock':
|
||||
self::checkFormSecurityTokenRedirectOnError('admin/users', 'admin_users', 't');
|
||||
|
@ -171,7 +171,7 @@ class Index extends BaseUsers
|
|||
|
||||
// values //
|
||||
'$baseurl' => DI::baseUrl()->get(true),
|
||||
'$query_string' => DI::baseUrl()->get(true),
|
||||
'$query_string' => DI::args()->getQueryString(),
|
||||
|
||||
'$users' => $users,
|
||||
'$count' => $count,
|
||||
|
|
Loading…
Reference in New Issue
Block a user