show 3 pages left and right of current page in pager

This commit is contained in:
Uwe Steinmann 2026-01-13 17:47:28 +01:00
parent 16c5f8cc8c
commit 7e6ceb83e3

View File

@ -1049,7 +1049,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 = 2; // 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;
}