1
0
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:
secretr
2011-06-28 12:14:45 +00:00
parent a21c53c9c7
commit 2e2bd7819b
2 changed files with 10 additions and 3 deletions

View File

@@ -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);