1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Forum post created: Append last inserted ID to data array for passing it to event callbacks.

This commit is contained in:
Lóna Lore 2015-12-15 10:33:33 +01:00
parent 9a5bf51422
commit f69013ec14

View File

@ -671,6 +671,8 @@ class e107forum
$info['data'] = $postInfo;
$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);
$forumInfo = array();