From 32ddbf374fd77ac9c499754e06609ef9848b8c5d Mon Sep 17 00:00:00 2001 From: Cesar G Date: Tue, 4 Feb 2014 07:15:15 -0800 Subject: [PATCH] [ticket/12163] Use posts_per_page to calculate current page in viewtopic.php PHPBB3-12163 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 227cfdd029..fab8e3b474 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1901,7 +1901,7 @@ if (!request_var('t', 0) && !empty($topic_id)) $request->overwrite('t', $topic_id); } -$page_title = $topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], $pagination->get_on_page($config['topics_per_page'], $start)) : ''); +$page_title = $topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], $pagination->get_on_page($config['posts_per_page'], $start)) : ''); /** * You can use this event to modify the page title of the viewtopic page