Skip to content

Commit

Permalink
Hacky shit to fix pagination weirdness - will come back to this
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Dec 3, 2013
1 parent b97f5fc commit 194150b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/controllers/admin/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,24 @@ public function getIndex()
// Do we want to include the deleted users?
if (Input::get('withTrashed'))
{
$users = $users->withTrashed();

}
else if (Input::get('onlyTrashed'))
{
$users = $users->onlyTrashed();
}


// Get the user assets
//$assets = $users->assets();


// Paginate the users
$users = $users->paginate()
$users = $users->paginate(100000)
->appends(array(
'withTrashed' => Input::get('withTrashed'),
'onlyTrashed' => Input::get('onlyTrashed'),
));


// Show the page
return View::make('backend/users/index', compact('users', 'assets'));
return View::make('backend/users/index', compact('users'));
}

/**
Expand Down

0 comments on commit 194150b

Please sign in to comment.