From 0ae8710132488a53bed5fd238db84e9b8bc479ee Mon Sep 17 00:00:00 2001 From: Toxyy Date: Thu, 12 Jul 2018 19:00:44 -0400 Subject: [PATCH] [ticket/15722] Allow forum topicrow pagination to use topicrow values Changes topicrow pagination to use values from topicrow This allows pagination to reflect values from core.viewforum_modify_row PHPBB3-15722 --- phpBB/viewforum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 0f36ae5595..fbb4ebd299 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -1027,7 +1027,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;