Skip to content

Commit 49a57e9

Browse files
committed
Update Paginator.php
1 parent 00839a6 commit 49a57e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Paginator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
public function __construct(
2828
private Template $template,
2929
array $items,
30-
private array $url = [['pp', 's'], ['p' => '']]
30+
private array $url = [['pp', 's', 'view'], ['p' => '']]
3131
) {
3232
$this->total = count($items);
3333
$this->page = Http::get('p', 1);
34-
$this->per_page = min(500, max(1, Http::get('pp', 50)));
34+
$this->per_page = min(500, max(1, Http::get('pp', 50))); // this is intentionally limited to 500
3535
$this->paginated = array_slice($items, $this->per_page * ($this->page - 1), $this->per_page, true);
3636
}
3737

0 commit comments

Comments
 (0)