diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-09 17:04:40 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-13 22:41:14 +0200 |
commit | fc34057f288c6b8c656a0ed1ac2cb5a86f86206d (patch) | |
tree | e1fead9c675d649708d7540c3d6e4bbf9d97abd2 /phpBB/phpbb/notification/type/post.php | |
parent | f29b12e35397ef4a4996ea7d212f0ab5a7a1dba6 (diff) | |
download | forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.gz forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.bz2 forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.xz forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.zip |
[ticket/11444] Update tests and cleanup types/methods
PHPBB3-11444
Diffstat (limited to 'phpBB/phpbb/notification/type/post.php')
-rw-r--r-- | phpBB/phpbb/notification/type/post.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/type/post.php b/phpBB/phpbb/notification/type/post.php index e310484187..f3dd6d531a 100644 --- a/phpBB/phpbb/notification/type/post.php +++ b/phpBB/phpbb/notification/type/post.php @@ -55,6 +55,22 @@ class post extends \phpbb\notification\type\base 'group' => 'NOTIFICATION_GROUP_POSTING', ); + /** @var \phpbb\user_loader */ + protected $user_loader; + + /** @var \phpbb\config\config */ + protected $config; + + public function set_config(\phpbb\config\config $config) + { + $this->config = $config; + } + + public function set_user_loader(\phpbb\user_loader $user_loader) + { + $this->user_loader = $user_loader; + } + /** * Is available */ @@ -140,6 +156,7 @@ class post extends \phpbb\notification\type\base { unset($notify_users[$user]); + /** @var post $notification */ $notification = $this->notification_manager->get_item_type_class($this->get_type(), $notification_data); $update_responders = $notification->add_responders($post); if (!empty($update_responders)) |