From 4f856d74580d72160f089086a82d18a2e2885aca Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 13:51:40 +0000 Subject: [PATCH] Some more sanity check (I'm not sure I ever needed that) --- Sources/Display.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Display.php b/Sources/Display.php index 1ba77e4..ac6bf5c 100644 --- a/Sources/Display.php +++ b/Sources/Display.php @@ -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']}";