From a534fc79c48f3ef83cc54510d0a5bde2b5089ed6 Mon Sep 17 00:00:00 2001 From: maTh Date: Wed, 27 Jul 2022 18:52:30 +0200 Subject: Fix: logs page=0 error (#4460) * add docs of function param() * page < 0 is impossible now * show prev/next only, when there is a prev/next page * set always page params * Revert "page < 0 is impossible now" This reverts commit fdb920ee50efe2c5cf64ca2dec936ec28ab2ee6c. * Update logs_pagination.phtml --- app/views/helpers/logs_pagination.phtml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/helpers/logs_pagination.phtml b/app/views/helpers/logs_pagination.phtml index d12b3f9d1..c7b9ca0ca 100755 --- a/app/views/helpers/logs_pagination.phtml +++ b/app/views/helpers/logs_pagination.phtml @@ -17,9 +17,14 @@ currentPage - 1; ?> + +
  • + currentPage > 1) { ?> +
  • + currentPage - 2 > 1) { ?>
  • @@ -28,8 +33,8 @@ currentPage - 2; $i <= $this->currentPage + 2; $i++) { if($i > 0 && $i <= $this->nbPage) { + $params[$getteur] = $i; if ($i != $this->currentPage) { - $params[$getteur] = $i; $class = ''; $aria = 'false'; } else { @@ -46,9 +51,13 @@ currentPage + 1; ?> +
  • + currentPage < $this->nbPage) { ?> +
  • + nbPage; ?>
  • » -- cgit v1.2.3