phpBB

Code Changes

File: phpbb/notification/type/report_pm_closed.php

  Unmodified   Added   Modified   Removed
Line 100Line 100
	*/
public function get_email_template_variables()
{

	*/
public function get_email_template_variables()
{

		$sender_data = $this->user_loader->get_username($this->get_data('from_user_id'), 'username');
$closer_data = $this->user_loader->get_username($this->get_data('closer_id'), 'username');

		$sender_username = $this->user_loader->get_username($this->get_data('from_user_id'), 'username');
$closer_username = $this->user_loader->get_username($this->get_data('closer_id'), 'username');


return [


return [

			'AUTHOR_NAME'	=> htmlspecialchars_decode($sender_data['username']),
'CLOSER_NAME' => htmlspecialchars_decode($closer_data['username']),
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),

			'AUTHOR_NAME'	=> html_entity_decode($sender_username, ENT_COMPAT),
'CLOSER_NAME' => html_entity_decode($closer_username, ENT_COMPAT),
'SUBJECT' => html_entity_decode(censor_text($this->get_data('message_subject')), ENT_COMPAT),


'U_VIEW_MESSAGE'=> generate_board_url() . "/ucp.{$this->php_ext}?i=pm&mode=view&p={$this->item_id}",
];


'U_VIEW_MESSAGE'=> generate_board_url() . "/ucp.{$this->php_ext}?i=pm&mode=view&p={$this->item_id}",
];