From 761f2ac642ff44fb96e6d262abeaa23f253193af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kel=C4=8D=C3=A1k?= Date: Sun, 1 Sep 2024 17:30:37 +0200 Subject: [PATCH] Fix paginator --- src/Dashboards/OPCache/OPCacheTrait.php | 2 +- src/Paginator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dashboards/OPCache/OPCacheTrait.php b/src/Dashboards/OPCache/OPCacheTrait.php index 829ac91..6fc5b2b 100644 --- a/src/Dashboards/OPCache/OPCacheTrait.php +++ b/src/Dashboards/OPCache/OPCacheTrait.php @@ -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); diff --git a/src/Paginator.php b/src/Paginator.php index cb58305..326cbf8 100644 --- a/src/Paginator.php +++ b/src/Paginator.php @@ -31,7 +31,7 @@ class Paginator { * @param array> $items * @param array> $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);