Some more sanity check (I'm not sure I ever needed that)
This commit is contained in:
@@ -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']}";
|
||||
|
||||
Reference in New Issue
Block a user