Line 52 | Line 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 120 | Line 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 141 | Line 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 223 | Line 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);
|
}
/**
| }
/**
|