mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 20:31:41 +02:00
Forum post created: Append last inserted ID to data array for passing it to event callbacks.
This commit is contained in:
@@ -671,6 +671,8 @@ class e107forum
|
|||||||
|
|
||||||
$info['data'] = $postInfo;
|
$info['data'] = $postInfo;
|
||||||
$postId = $sql->insert('forum_post', $info);
|
$postId = $sql->insert('forum_post', $info);
|
||||||
|
// Append last inserted ID to data array for passing it to event callbacks.
|
||||||
|
$info['data']['post_id'] = $postId;
|
||||||
e107::getEvent()->trigger('user_forum_post_created', $info);
|
e107::getEvent()->trigger('user_forum_post_created', $info);
|
||||||
$forumInfo = array();
|
$forumInfo = array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user