mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
forum last thread additional fix, better (but still not perfect) forum mod message render
This commit is contained in:
@@ -105,12 +105,14 @@ if (MODERATOR && isset($_POST['mod']))
|
||||
$thread->threadInfo = $forum->threadGet($thread->threadId);
|
||||
}
|
||||
|
||||
$postList = $forum->PostGet($thread->threadId, ($thread->page - 1) * $thread->perPage, $thread->perPage);
|
||||
$num = $thread->page ? $thread->page - 1 : 0;
|
||||
$postList = $forum->PostGet($thread->threadId, $num * $thread->perPage, $thread->perPage);
|
||||
|
||||
$gen = new convert;
|
||||
if ($thread->message)
|
||||
{
|
||||
$ns->tablerender('', $thread->message, array('forum_viewtopic', 'msg'));
|
||||
//$ns->tablerender('', $thread->message, array('forum_viewtopic', 'msg'));
|
||||
e107::getMessage()->add($thread->message);
|
||||
}
|
||||
|
||||
if (isset($thread->threadInfo['thread_options']['poll']))
|
||||
@@ -210,6 +212,8 @@ $tVars->POLL = $pollstr;
|
||||
|
||||
$tVars->FORUMJUMP = forumjump();
|
||||
|
||||
$tVars->MESSAGE = $thread->message;
|
||||
|
||||
$forstr = $tp->simpleParse($FORUMSTART, $tVars);
|
||||
|
||||
unset($forrep);
|
||||
|
Reference in New Issue
Block a user