summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/web/src/Control/PaginationControl.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:30:22 +0000
commit9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce (patch)
treeb00a07aca10f581c2be69d612a0a397a415eeb6b /vendor/ipl/web/src/Control/PaginationControl.php
parentReleasing progress-linux version 0.13.1-1~progress7.99u1. (diff)
downloadicinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.tar.xz
icinga-php-library-9919ea7a76a4bf1eaffe5e288ab82dcafeb775ce.zip
Merging upstream version 0.13.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--vendor/ipl/web/src/Control/PaginationControl.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/ipl/web/src/Control/PaginationControl.php b/vendor/ipl/web/src/Control/PaginationControl.php
index 00f5c20..e704829 100644
--- a/vendor/ipl/web/src/Control/PaginationControl.php
+++ b/vendor/ipl/web/src/Control/PaginationControl.php
@@ -17,6 +17,9 @@ use ipl\Web\Widget\Icon;
*/
class PaginationControl extends BaseHtmlElement
{
+ /** @var string Default page parameter */
+ public const DEFAULT_PAGE_PARAM = 'page';
+
/** @var int Default maximum number of items which should be shown per page */
protected $defaultPageSize;
@@ -467,10 +470,8 @@ class PaginationControl extends BaseHtmlElement
'title' => t('Go to page …')
]);
- if (isset($currentPageNumber)) {
- if ($currentPageNumber === 1 || $currentPageNumber === $this->getPageCount()) {
- $select->add(Html::tag('option', ['disabled' => '', 'selected' => ''], '…'));
- }
+ if ($currentPageNumber === 1 || $currentPageNumber === $this->getPageCount()) {
+ $select->add(Html::tag('option', ['disabled' => '', 'selected' => ''], '…'));
}
foreach (range(2, $this->getPageCount() - 1) as $page) {