show 3 pages left and right of current page in pager

This commit is contained in:
Uwe Steinmann 2026-01-13 17:42:00 +01:00
parent 85638ebadb
commit 7fa612ad1a

View File

@ -1064,7 +1064,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
function pageList($pageNumber, $totalPages, $baseURI, $params, $dataparams=[]) { /* {{{ */
$maxpages = 25; // skip pages when more than this is shown
$range = 5; // pages left and right of current page
$range = 3; // pages left and right of current page
if (!is_numeric($pageNumber) || !is_numeric($totalPages) || $totalPages<2) {
return;
}