mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Merge pull request #3618 from arunshekher/enhancement/forum-report-event-data-enrichment
Enhance 'user_forum_post_report' event data set and Fix 'user_forum_post_report' notification email not sent bug.
This commit is contained in:
@@ -358,10 +358,11 @@ class forum_notify extends notify
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$message = $data;
|
$message = $data['notify_message'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->send('forum_post_rep', LAN_FORUM_NT_11, $message);
|
$this->send('user_forum_post_report', LAN_FORUM_NT_11, $message);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -314,10 +314,18 @@ class forum_post_handler
|
|||||||
|
|
||||||
$report = LAN_FORUM_2018." ".SITENAME." : ".$link . "\n
|
$report = LAN_FORUM_2018." ".SITENAME." : ".$link . "\n
|
||||||
".LAN_FORUM_2019.": ".USERNAME. "\n" . $report_add;
|
".LAN_FORUM_2019.": ".USERNAME. "\n" . $report_add;
|
||||||
//$subject = LAN_FORUM_2020." ". SITENAME;
|
|
||||||
|
|
||||||
//e107::getNotify()->send('forum_post_rep', $subject, $report);
|
$eventData = array(
|
||||||
e107::getEvent()->trigger('user_forum_post_report', $report);
|
'reporter_id' => USERID,
|
||||||
|
'reporter_name' => USERNAME,
|
||||||
|
'report_time' => $insert['gen_datestamp'],
|
||||||
|
'thread_id' => $insert['gen_intdata'],
|
||||||
|
'thread_name' => $insert['gen_ip'],
|
||||||
|
'report_message' => $report_add,
|
||||||
|
'notify_message' => $report
|
||||||
|
);
|
||||||
|
|
||||||
|
e107::getEvent()->trigger('user_forum_post_report', $eventData);
|
||||||
e107::getRender()->tablerender(LAN_FORUM_2023, $text, 'forum-post-report');
|
e107::getRender()->tablerender(LAN_FORUM_2023, $text, 'forum-post-report');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user