Fix redirect/form paths in Module\Admin\Users\Index|Active
This commit is contained in:
parent
d07b580366
commit
ae00111f5b
2 changed files with 5 additions and 5 deletions
|
@ -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 a new issue