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:
parent
a4e62a84e8
commit
a21c53c9c7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user