1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-27 10:14:47 +02:00

[ticket/11849] Update pagination code in viewtopic.php

PHPBB3-11849
This commit is contained in:
Joas Schilling
2013-12-12 11:59:26 +01:00
parent 725c512468
commit 4f4512cbac
2 changed files with 11 additions and 15 deletions

View File

@@ -481,8 +481,8 @@ if ($start > $topics_count / 2)
// Select the sort order
$sql_sort_order = $sort_by_sql[$sort_key] . ' ' . (($sort_dir == 'd') ? 'ASC' : 'DESC');
$sql_limit = $pagination->reverse_limit($start, $per_page, $num_items);
$sql_start = $pagination->reverse_start($start, $sql_limit, $num_items);
$sql_limit = $pagination->reverse_limit($start, $sql_limit, $topics_count);
$sql_start = $pagination->reverse_start($start, $sql_limit, $topics_count);
}
else
{