Skip to content

Commit

Permalink
Fix paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Sep 1, 2024
1 parent e1b16af commit 761f2ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dashboards/OPCache/OPCacheTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function getCachedScripts(): array {

private function mainDashboard(): string {
$cached_scripts = $this->getCachedScripts();
$paginator = new Paginator($this->template, $cached_scripts, [['ignore', 'pp'], ['p' => '']]);
$paginator = new Paginator($this->template, $cached_scripts, [['ignore', 'pp', 's'], ['p' => '']]);
$is_ignored = isset($_GET['ignore']) && $_GET['ignore'] === 'yes';
$status = opcache_get_status(false);

Expand Down
2 changes: 1 addition & 1 deletion src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Paginator {
* @param array<int, array<string, int|string>> $items
* @param array<int, array<int|string, string>> $url
*/
public function __construct(Template $template, array $items, array $url = [['pp'], ['p' => '']]) {
public function __construct(Template $template, array $items, array $url = [['pp', 's'], ['p' => '']]) {
$this->template = $template;
$this->url = $url;
$this->total = count($items);
Expand Down

0 comments on commit 761f2ac

Please sign in to comment.