diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/navigation/pagination.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php index 0ce3b963a..35de9b3da 100644 --- a/views/default/navigation/pagination.php +++ b/views/default/navigation/pagination.php @@ -77,17 +77,17 @@ $i = 1;
$pagesarray = array();
- while ($i <= $allpages && $i <= 3) {
+ while ($i <= $allpages && $i <= 4) {
$pagesarray[] = $i;
$i++;
}
- $i = $currentpage - 1;
- while ($i <= $allpages && $i <= ($currentpage + 1)) {
+ $i = $currentpage - 2;
+ while ($i <= $allpages && $i <= ($currentpage + 2)) {
if ($i > 0 && !in_array($i,$pagesarray))
$pagesarray[] = $i;
$i++;
}
- $i = $allpages - 2;
+ $i = $allpages - 3;
while ($i <= $allpages) {
if ($i > 0 && !in_array($i,$pagesarray))
$pagesarray[] = $i;
|