fix alt_pager to work if item count is higher than page['itemspage'] (threads)

This commit is contained in:
zottel 2013-10-11 10:50:06 +02:00
parent 89fc319c90
commit e6c93e4146

View file

@ -364,7 +364,7 @@ function alt_pager(&$a, $i, $more = '', $less = '') {
return replace_macros(get_markup_template('alt_pager.tpl'),array(
'$has_less' => (($a->pager['page'] > 1) ? true : false),
'$has_more' => (($i > 0 && $i == $a->pager['itemspage']) ? true : false),
'$has_more' => (($i > 0 && $i >= $a->pager['itemspage']) ? true : false),
'$less' => $less,
'$more' => $more,
'$url' => $url,