mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Issue #877: use the terminology forum-topic rather than forum-thread
This commit is contained in:
@@ -628,7 +628,7 @@ class e107forum
|
|||||||
$info['_FIELD_TYPES']['thread_total_replies'] = 'cmd';
|
$info['_FIELD_TYPES']['thread_total_replies'] = 'cmd';
|
||||||
|
|
||||||
$result = $sql->update('forum_thread', $info);
|
$result = $sql->update('forum_thread', $info);
|
||||||
e107::getEvent()->trigger('user-forum-thread-updated', $info);
|
e107::getEvent()->trigger('user-forum-topic-updated', $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($result || !$updateThread) && $updateForum)
|
if(($result || !$updateThread) && $updateForum)
|
||||||
@@ -685,7 +685,7 @@ class e107forum
|
|||||||
$info['data'] = $threadInfo;
|
$info['data'] = $threadInfo;
|
||||||
if($newThreadId = e107::getDb()->insert('forum_thread', $info))
|
if($newThreadId = e107::getDb()->insert('forum_thread', $info))
|
||||||
{
|
{
|
||||||
e107::getEvent()->trigger('user-forum-thread-created', $info);
|
e107::getEvent()->trigger('user-forum-topic-created', $info);
|
||||||
$postInfo['post_thread'] = $newThreadId;
|
$postInfo['post_thread'] = $newThreadId;
|
||||||
$newPostId = $this->postAdd($postInfo, false);
|
$newPostId = $this->postAdd($postInfo, false);
|
||||||
$this->threadMarkAsRead($newThreadId);
|
$this->threadMarkAsRead($newThreadId);
|
||||||
@@ -742,7 +742,7 @@ class e107forum
|
|||||||
// $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread'];
|
// $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread'];
|
||||||
$info['WHERE'] = 'thread_id = '.(int)$threadId;
|
$info['WHERE'] = 'thread_id = '.(int)$threadId;
|
||||||
e107::getDb()->update('forum_thread', $info);
|
e107::getDb()->update('forum_thread', $info);
|
||||||
e107::getEvent()->trigger('user-forum-thread-updated', $info);
|
e107::getEvent()->trigger('user-forum-topic-updated', $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1890,7 +1890,7 @@ class e107forum
|
|||||||
if($sql->delete('forum_thread', 'thread_id='.$threadId))
|
if($sql->delete('forum_thread', 'thread_id='.$threadId))
|
||||||
{
|
{
|
||||||
$status = true;
|
$status = true;
|
||||||
e107::getEvent()->trigger('user-forum-thread-deleted', $threadId);
|
e107::getEvent()->trigger('user-forum-topic-deleted', $threadId);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Delete any thread tracking
|
//Delete any thread tracking
|
||||||
|
Reference in New Issue
Block a user