mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Tweak pagination URL parameter names
This commit is contained in:
parent
ed74202ad6
commit
8002fd3c2c
@ -25,8 +25,8 @@ class AdminController extends Controller {
|
||||
$admin_links = null;
|
||||
|
||||
if ($this->currIsAdmin()) {
|
||||
$admin_users = User::paginate(15, ['*'], 'users');
|
||||
$admin_links = Link::paginate(15, ['*'], 'links');
|
||||
$admin_users = User::paginate(15, ['*'], 'users_page');
|
||||
$admin_links = Link::paginate(15, ['*'], 'admin_links_page');
|
||||
}
|
||||
|
||||
$user = UserHelper::getUserByUsername($username);
|
||||
@ -36,7 +36,7 @@ class AdminController extends Controller {
|
||||
}
|
||||
|
||||
$user_links = Link::where('creator', $username)
|
||||
->paginate(15, ['*'], 'userlinks');
|
||||
->paginate(15, ['*'], 'links_page');
|
||||
|
||||
return view('admin', [
|
||||
'role' => $role,
|
||||
|
Loading…
Reference in New Issue
Block a user