1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 22:25:31 +02:00

Merge pull request #1273 from lonalore/master

Forum post created event: Append last inserted ID to data array for passing…
This commit is contained in:
Cameron
2015-12-17 00:16:41 -08:00
2 changed files with 4 additions and 2 deletions

View File

@@ -676,6 +676,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();