aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification
diff options
context:
space:
mode:
author3Di <three3di@hotmail.it>2019-03-23 05:09:17 +0100
committerGitHub <noreply@github.com>2019-03-23 05:09:17 +0100
commit6921565efe4674c51eb08326313cfca3349eedd5 (patch)
treedabee12a9a81fe778be6769c5f1abc5be36ab9cf /phpBB/phpbb/notification
parent6c1664f6d3b85c1b4d620870444c8f4b82b08e57 (diff)
parent0d04f53f374db12a1a285992a9c789a836848b3e (diff)
downloadforums-6921565efe4674c51eb08326313cfca3349eedd5.tar
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.gz
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.bz2
forums-6921565efe4674c51eb08326313cfca3349eedd5.tar.xz
forums-6921565efe4674c51eb08326313cfca3349eedd5.zip
Merge branch '3.2.x' into ticket/15948
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r--phpBB/phpbb/notification/type/report_pm.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/phpBB/phpbb/notification/type/report_pm.php b/phpBB/phpbb/notification/type/report_pm.php
index 7e53ffb3ca..444f98270d 100644
--- a/phpBB/phpbb/notification/type/report_pm.php
+++ b/phpBB/phpbb/notification/type/report_pm.php
@@ -142,13 +142,16 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function get_email_template_variables()
{
- $user_data = $this->user_loader->get_user($this->get_data('reporter_id'));
+ $user_data = $this->user_loader->get_user($this->get_data('from_user_id'));
return array(
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),
- 'U_VIEW_REPORT' => generate_board_url() . "mcp.{$this->php_ext}?r={$this->item_parent_id}&amp;i=pm_reports&amp;mode=pm_report_details",
+ /** @deprecated 3.2.6-RC1 (to be removed in 4.0.0) use {SUBJECT} instead in report_pm.txt */
+ 'TOPIC_TITLE' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),
+
+ 'U_VIEW_REPORT' => generate_board_url() . "/mcp.{$this->php_ext}?r={$this->item_parent_id}&amp;i=pm_reports&amp;mode=pm_report_details",
);
}
@@ -236,8 +239,10 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function users_to_query()
{
- return array($this->get_data('reporter_id'));
- }
+ return array(
+ $this->get_data('from_user_id'),
+ $this->get_data('reporter_id'),
+ ); }
/**
* {@inheritdoc}