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