aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 10:58:33 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 10:58:33 +0000
commit9808fa9f9d2924f7056f47fb627d58bd47e4f2cf (patch)
tree44531067389bf8ed66e5a0a78fff44b88e4951fc /views/default
parent1801bcac3fd99ec14fdab2e065c75fe2994249f7 (diff)
downloadelgg-9808fa9f9d2924f7056f47fb627d58bd47e4f2cf.tar.gz
elgg-9808fa9f9d2924f7056f47fb627d58bd47e4f2cf.tar.bz2
Further pagination change.
git-svn-id: https://code.elgg.org/elgg/trunk@1349 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/pagination.php8
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;