mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
Use function to call paginator
This commit is contained in:
@@ -54,7 +54,7 @@ class ConsoleController extends BasePageController
|
||||
|
||||
$consoles = [];
|
||||
$rslt = $console->getConsoleRange($page, $catarray, $offset, config('nntmux.items_per_cover_page'), $orderby, $this->userdata['categoryexclusions']);
|
||||
$results = new LengthAwarePaginator($rslt, $rslt['_totalcount'], config('nntmux.items_per_cover_page'), $page, ['path' => $request->url()]);
|
||||
$results = $this->paginate($rslt, $rslt['_totalcount'], config('nntmux.items_per_cover_page'), $page, $request->url());
|
||||
|
||||
$maxwords = 50;
|
||||
foreach ($results as $result) {
|
||||
|
||||
Reference in New Issue
Block a user