diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 1d6599f58b..a2c5cf20c3 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -1028,7 +1028,7 @@ if (count($topic_list)) $template->assign_block_vars('topicrow', $topic_row); - $pagination->generate_template_pagination($view_topic_url, 'topicrow.pagination', 'start', $replies + 1, $config['posts_per_page'], 1, true, true); + $pagination->generate_template_pagination($topic_row['U_VIEW_TOPIC'], 'topicrow.pagination', 'start', $topic_row['REPLIES'] + 1, $config['posts_per_page'], 1, true, true); $s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;