mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Forum triggerData fix.
This commit is contained in:
@@ -3792,7 +3792,7 @@ $text .= "
|
|||||||
|
|
||||||
// ------- Customize Create --------
|
// ------- Customize Create --------
|
||||||
|
|
||||||
public function beforeCreate(\$new_data)
|
public function beforeCreate(\$new_data,\$old_data)
|
||||||
{
|
{
|
||||||
return \$new_data;
|
return \$new_data;
|
||||||
}
|
}
|
||||||
|
@@ -758,6 +758,7 @@ class e107forum
|
|||||||
e107::getMessage()->addDebug("Updating Thread with: ".print_a($info,true));
|
e107::getMessage()->addDebug("Updating Thread with: ".print_a($info,true));
|
||||||
|
|
||||||
$triggerData = $info['data'];
|
$triggerData = $info['data'];
|
||||||
|
$triggerData['thread_id'] = $postInfo['post_thread'];
|
||||||
e107::getEvent()->trigger('user_forum_topic_updated', $triggerData);
|
e107::getEvent()->trigger('user_forum_topic_updated', $triggerData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user