1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Merge pull request #919 from lonalore/master

Missing event triggering after sending PM to a single person. Append ID of ...
This commit is contained in:
Cameron 2015-03-06 15:08:40 -08:00
commit 3134d75d00

View File

@ -211,7 +211,8 @@ class private_message
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)
{
$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
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']))
{
set_time_limit(30);