diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2019-01-15 12:11:19 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-28 14:34:17 +0200 |
commit | 1af05d961551c0c1210e4b7d709cbbe7c03f8180 (patch) | |
tree | 9ab2e8e117623b3a2e2fdd90a10e66c6e861caf7 /phpBB/phpbb | |
parent | 36614e6f81bf4022694e3886862d184ebf9dee28 (diff) | |
download | forums-1af05d961551c0c1210e4b7d709cbbe7c03f8180.tar forums-1af05d961551c0c1210e4b7d709cbbe7c03f8180.tar.gz forums-1af05d961551c0c1210e4b7d709cbbe7c03f8180.tar.bz2 forums-1af05d961551c0c1210e4b7d709cbbe7c03f8180.tar.xz forums-1af05d961551c0c1210e4b7d709cbbe7c03f8180.zip |
[ticket/15940] Fix approve_* notifications
PHPBB3-15940
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/notification/type/approve_post.php | 5 | ||||
-rw-r--r-- | phpBB/phpbb/notification/type/approve_topic.php | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/phpBB/phpbb/notification/type/approve_post.php b/phpBB/phpbb/notification/type/approve_post.php index 1e8afec3f9..139b5fabb9 100644 --- a/phpBB/phpbb/notification/type/approve_post.php +++ b/phpBB/phpbb/notification/type/approve_post.php @@ -78,10 +78,7 @@ class approve_post extends \phpbb\notification\type\post 'ignore_users' => array(), ), $options); - $users = array(); - $users[$post['poster_id']] = $this->notification_manager->get_default_methods(); - - return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array( + return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array( 'item_type' => static::$notification_option['id'], ))); } diff --git a/phpBB/phpbb/notification/type/approve_topic.php b/phpBB/phpbb/notification/type/approve_topic.php index f0bbf3f6b0..0c343646ee 100644 --- a/phpBB/phpbb/notification/type/approve_topic.php +++ b/phpBB/phpbb/notification/type/approve_topic.php @@ -78,10 +78,7 @@ class approve_topic extends \phpbb\notification\type\topic 'ignore_users' => array(), ), $options); - $users = array(); - $users[$post['poster_id']] = $this->notification_manager->get_default_methods(); - - return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array( + return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array( 'item_type' => static::$notification_option['id'], ))); } |