aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2015-10-15 02:28:55 -0700
committerCesar G <prototech91@gmail.com>2015-10-15 02:28:55 -0700
commit9de5668b80897d99e3ccf59f49f4202b479e79f8 (patch)
tree54b41bd4802afab28dd9d00513602f2daaaa2678
parentbc6a4c45838500e6f68f79d853762711452899a2 (diff)
downloadforums-9de5668b80897d99e3ccf59f49f4202b479e79f8.tar
forums-9de5668b80897d99e3ccf59f49f4202b479e79f8.tar.gz
forums-9de5668b80897d99e3ccf59f49f4202b479e79f8.tar.bz2
forums-9de5668b80897d99e3ccf59f49f4202b479e79f8.tar.xz
forums-9de5668b80897d99e3ccf59f49f4202b479e79f8.zip
[ticket/13892] Respect "Someone reports a post" notification setting.
report_post inherits from post_in_queue, therefore using self:: instead of static:: results in the incorrect notification type being used to determine which users to exclude from the notification. PHPBB3-13892
-rw-r--r--phpBB/phpbb/notification/type/post_in_queue.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/notification/type/post_in_queue.php b/phpBB/phpbb/notification/type/post_in_queue.php
index 315b8b0243..5832c99cd2 100644
--- a/phpBB/phpbb/notification/type/post_in_queue.php
+++ b/phpBB/phpbb/notification/type/post_in_queue.php
@@ -108,7 +108,7 @@ class post_in_queue extends \phpbb\notification\type\post
}
return $this->check_user_notification_options($auth_read[$post['forum_id']]['f_read'], array_merge($options, array(
- 'item_type' => self::$notification_option['id'],
+ 'item_type' => static::$notification_option['id'],
)));
}