summaryrefslogtreecommitdiff
path: root/includes/pager.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-04-15 22:18:08 +0000
committerDries Buytaert <dries@buytaert.net>2004-04-15 22:18:08 +0000
commit4eb05da890073316180b55cdbea8d0e3f4c292ca (patch)
tree3046599c0fc7b83bf248f4a4a45a6f9fd6b77533 /includes/pager.inc
parent2caeac91ae53a966034d3324f31327e7f8709be6 (diff)
downloadbrdo-4eb05da890073316180b55cdbea8d0e3f4c292ca.tar.gz
brdo-4eb05da890073316180b55cdbea8d0e3f4c292ca.tar.bz2
- Patch #7161 by jhriggs: fixed bug with 'last page' functionality.
Diffstat (limited to 'includes/pager.inc')
-rw-r--r--includes/pager.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pager.inc b/includes/pager.inc
index 7eb3585b8..c15515589 100644
--- a/includes/pager.inc
+++ b/includes/pager.inc
@@ -170,7 +170,7 @@ function pager_next($text, $limit, $element = 0, $n = 1, $attributes = array())
function pager_last($text, $limit, $element = 0, $attributes = array()) {
global $pager_from_array, $pager_total;
- $from_new = pager_load_array(($pager_total[$element] - $limit), $element, $pager_from_array);
+ $from_new = pager_load_array(($pager_total[$element] - ($pager_total[$element] % $limit)), $element, $pager_from_array);
if ($from_new[$element] < ($pager_from_array[$element] + $limit)) {
return pager_next($text, $limit, $element, 1, $attributes);
}