aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-02-04 17:40:57 +0100
committerAndreas Fischer <bantu@phpbb.com>2014-02-04 17:40:57 +0100
commit0b6b7fc486055c728a21227a406a3b9a1ac32d38 (patch)
tree9d3d7d582fbf98738ff50471509e46ef46caec81
parentf5f6b834f894eaa285b8db1e47f86de3e9d71a48 (diff)
parent32ddbf374fd77ac9c499754e06609ef9848b8c5d (diff)
downloadforums-0b6b7fc486055c728a21227a406a3b9a1ac32d38.tar
forums-0b6b7fc486055c728a21227a406a3b9a1ac32d38.tar.gz
forums-0b6b7fc486055c728a21227a406a3b9a1ac32d38.tar.bz2
forums-0b6b7fc486055c728a21227a406a3b9a1ac32d38.tar.xz
forums-0b6b7fc486055c728a21227a406a3b9a1ac32d38.zip
Merge pull request #2004 from prototech/ticket/12163
[ticket/12163] Use posts_per_page to calculate current page in viewtopic.php * prototech/ticket/12163: [ticket/12163] Use posts_per_page to calculate current page in viewtopic.php
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
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