1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-07 11:28:22 +02:00

forum - last thread fix

This commit is contained in:
secretr 2011-06-28 10:33:12 +00:00
parent a4e62a84e8
commit a21c53c9c7

View File

@ -555,8 +555,8 @@ class e107ForumThread
break;
case 'last':
$pages = ceil(($thread->threadInfo['thread_total_replies'] + 1) / $thread->perPage);
$thread->page = ($pages - 1);
$pages = ceil(($thread->threadInfo['thread_total_replies']) / $thread->perPage);
$thread->page = $_GET['p'] = $pages;
break;
case 'next': // FIXME - nextprev thread detection not working