aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-05-29 23:28:22 +0200
committerPayBas <contact@paybas.com>2014-06-05 09:59:31 +0200
commitc3b24e200566b11e80f96f8186dbe5eab6241d72 (patch)
tree243ae8a25f93e6eee62ca2a18273e5a933c49580 /phpBB/phpbb
parent49c875413ca2fd1cc438ce42c64e0a00a5044e56 (diff)
downloadforums-c3b24e200566b11e80f96f8186dbe5eab6241d72.tar
forums-c3b24e200566b11e80f96f8186dbe5eab6241d72.tar.gz
forums-c3b24e200566b11e80f96f8186dbe5eab6241d72.tar.bz2
forums-c3b24e200566b11e80f96f8186dbe5eab6241d72.tar.xz
forums-c3b24e200566b11e80f96f8186dbe5eab6241d72.zip
[ticket/12613] Improved pagination
PHPBB3-12613
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/pagination.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/pagination.php b/phpBB/phpbb/pagination.php
index 927d711f4b..1d20b7f81c 100644
--- a/phpBB/phpbb/pagination.php
+++ b/phpBB/phpbb/pagination.php
@@ -126,8 +126,8 @@ class pagination
// determine this number. Again at most five pages? Then just display them all. More than
// five and we first (min) determine whether we'd end up listing more pages than exist.
// We then (max) ensure we're displaying the minimum number of pages.
- $start_page = ($total_pages > 5) ? min(max(1, $on_page - 3), $total_pages - 4) : 1;
- $end_page = ($total_pages > 5) ? max(min($total_pages, $on_page + 3), 5) : $total_pages;
+ $start_page = ($total_pages > 5) ? min(max(1, $on_page - 2), $total_pages - 4) : 1;
+ $end_page = ($total_pages > 5) ? max(min($total_pages, $on_page + 2), 5) : $total_pages;
}
if ($on_page != 1)