[ticket/16208] Code adjustments

PHPBB3-16208
This commit is contained in:
rxu 2020-09-19 18:15:13 +07:00
parent 242476c290
commit 856fcf7554
No known key found for this signature in database
GPG key ID: 955F0567380E586A
2 changed files with 3 additions and 4 deletions

View file

@ -2,7 +2,7 @@ Subject: Report closed - "{POST_SUBJECT}"
Hello {USERNAME},
You are receiving this notification because the report you filed on the post "{POST_SUBJECT}" by "{AUTHOR_NAME}" in "{TOPIC_TITLE}" topic at "{SITENAME}" was handled by a moderator or by an administrator. The report was afterwards closed. If you have further questions contact {CLOSER_NAME} with a personal message.
You are receiving this notification because the report you filed on the post "{POST_SUBJECT}" by "{AUTHOR_NAME}" in "{TOPIC_TITLE}" at "{SITENAME}" was handled by a moderator or by an administrator. The report was afterwards closed. If you have further questions contact {CLOSER_NAME} with a personal message.
You can view your reported post by clicking on the following link:

View file

@ -84,11 +84,10 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function is_available()
{
return !empty($this->auth->acl_get($this->permission)) &&
$this->config['allow_pm_report'];
return $this->config['allow_pm_report'] &&
!empty($this->auth->acl_get($this->permission));
}
/**
* Find the users who want to receive notifications
* (copied from post_in_queue)