[ticket/10397] Pagination inconsistency fix

Fixing topic_generate_pagination()

PHPBB3-10397
This commit is contained in:
Vjacheslav Trushkin 2011-10-04 12:24:42 +03:00
parent 12882084d4
commit b38fbc6d25

View file

@ -674,7 +674,7 @@ function topic_generate_pagination($replies, $url)
$pagination .= '<a href="' . $url . ($j == 0 ? '' : '&amp;start=' . $j) . '">' . $times . '</a>';
if ($times == 1 && $total_pages > 5)
{
$pagination .= ' ... ';
$pagination .= '<span class="page-dots"> ... </span>';
// Display the last three pages
$times = $total_pages - 3;