mirror of
https://github.com/e107inc/e107.git
synced 2025-07-17 13:01:14 +02:00
Missing event triggering after sending to a single person. Append ID of inserted row to event data.
This commit is contained in:
@@ -211,7 +211,8 @@ class private_message
|
|||||||
|
|
||||||
if($pmid = $sql->insert('private_msg', $info))
|
if($pmid = $sql->insert('private_msg', $info))
|
||||||
{
|
{
|
||||||
e107::getEvent()->trigger('user_pm_sent', $info);
|
$info['pm_id'] = $pmid;
|
||||||
|
e107::getEvent()->trigger('user_pm_sent', $info);
|
||||||
if($class == FALSE)
|
if($class == FALSE)
|
||||||
{
|
{
|
||||||
$toclass .= $u['user_name'].', ';
|
$toclass .= $u['user_name'].', ';
|
||||||
@@ -244,6 +245,8 @@ class private_message
|
|||||||
$info['pm_to'] = intval($vars['to_info']['user_id']); // Sending to a single user now
|
$info['pm_to'] = intval($vars['to_info']['user_id']); // Sending to a single user now
|
||||||
if($pmid = $sql->insert('private_msg', $info))
|
if($pmid = $sql->insert('private_msg', $info))
|
||||||
{
|
{
|
||||||
|
$info['pm_id'] = $pmid;
|
||||||
|
e107::getEvent()->trigger('user_pm_sent', $info);
|
||||||
if(check_class($this->pmPrefs['notify_class'], $vars['to_info']['user_class']))
|
if(check_class($this->pmPrefs['notify_class'], $vars['to_info']['user_class']))
|
||||||
{
|
{
|
||||||
set_time_limit(30);
|
set_time_limit(30);
|
||||||
|
Reference in New Issue
Block a user