phpBB

Code Changes

File: phpbb/notification/type/report_pm.php

  Unmodified   Added   Modified   Removed
Line 52Line 52
	*
* @var string Permission name
*/

	*
* @var string Permission name
*/

	protected $permission = 'm_report';

	protected $permission = 'm_pm_report';


/**
* Notification option data (for outputting to the user)


/**
* Notification option data (for outputting to the user)

Line 120Line 120
		}

return $this->check_user_notification_options($auth_approve[$post['forum_id']][$this->permission], array_merge($options, array(

		}

return $this->check_user_notification_options($auth_approve[$post['forum_id']][$this->permission], array_merge($options, array(

			'item_type'		=> self::$notification_option['id'],

			'item_type'		=> static::$notification_option['id'],

		)));
}


		)));
}


Line 141Line 141
	*/
public function get_email_template_variables()
{

	*/
public function get_email_template_variables()
{

 
		$user_data = $this->user_loader->get_user($this->get_data('reporter_id'));


		return array(
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),

		return array(
'AUTHOR_NAME' => htmlspecialchars_decode($user_data['username']),
'SUBJECT' => htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),

Line 223Line 225
	*/
public function get_avatar()
{

	*/
public function get_avatar()
{

		return $this->user_loader->get_avatar($this->get_data('reporter_id'));

		return $this->user_loader->get_avatar($this->get_data('reporter_id'), false, true);

	}

/**

	}

/**