Some more sanity check (I'm not sure I ever needed that)

This commit is contained in:
Aleksei Miheev
2014-01-05 13:51:40 +00:00
parent af50995e10
commit 1dcc19be47

View File

@@ -347,8 +347,8 @@ function Display()
// This is information about which page is current, and which page we're on - in case you don't like the constructed page index. (again, wireles..)
$context['page_info'] = array(
'current_page' => $_REQUEST['start'] / $modSettings['defaultMaxMessages'] + 1,
'num_pages' => floor($topicinfo['numReplies'] / $modSettings['defaultMaxMessages']) + 1
'current_page' => floor($_REQUEST['start'] / $modSettings['defaultMaxMessages']) + 1,
'num_pages' => floor($topicinfo['numReplies'] / $modSettings['defaultMaxMessages']) + 1,
);
if (isset ($_REQUEST['topicname'])) {
$context['canonical_url'] = "/forum/{$_REQUEST['topicname']}?start={$_REQUEST['start']}";