mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Post replies are now incremented properly, editing of posts now working.
This commit is contained in:
@@ -211,7 +211,7 @@ class e107forum
|
|||||||
$info['data'] = $threadInfo;
|
$info['data'] = $threadInfo;
|
||||||
$info['WHERE'] = 'thread_id = '.$postInfo['post_thread'];
|
$info['WHERE'] = 'thread_id = '.$postInfo['post_thread'];
|
||||||
// $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread'];
|
// $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread'];
|
||||||
// $info['_FIELD_TYPES']['thread_total_replies'] = 'cmd';
|
$info['_FIELD_TYPES']['thread_total_replies'] = 'cmd';
|
||||||
|
|
||||||
$result = $e107->sql->db_Update('forum_thread', $info);
|
$result = $e107->sql->db_Update('forum_thread', $info);
|
||||||
|
|
||||||
@@ -378,7 +378,7 @@ class e107forum
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function postGet($id, $start, $num)
|
function postGet($id, $start, $num = NULL)
|
||||||
{
|
{
|
||||||
$id = (int)$id;
|
$id = (int)$id;
|
||||||
$ret = false;
|
$ret = false;
|
||||||
|
@@ -511,7 +511,7 @@ else
|
|||||||
function isAuthor()
|
function isAuthor()
|
||||||
{
|
{
|
||||||
global $postInfo;
|
global $postInfo;
|
||||||
return ((USERID === $postInfo['post_user']) || MODERATOR);
|
return ((USERID === (int)$postInfo['post_user']) || MODERATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
function forumjump()
|
function forumjump()
|
||||||
|
Reference in New Issue
Block a user