aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification/method/messenger_base.php
diff options
context:
space:
mode:
authorMáté Bartus <mate.bartus@gmail.com>2015-07-14 12:19:52 +0200
committerMáté Bartus <mate.bartus@gmail.com>2015-07-14 12:19:52 +0200
commit1127f8bbf842e9c494cce624e4e61a2e86706862 (patch)
tree6eb8edf56222b8829896eaef4da5937234d3d03c /phpBB/phpbb/notification/method/messenger_base.php
parentda0897323b9b5b9e1e376dc3d1c9fe7024568781 (diff)
parent11bef3e22ed8cc2109ab7a5b4229f393d3648862 (diff)
downloadforums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.gz
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.bz2
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.xz
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.zip
Merge pull request #3751 from Nicofuma/ticket/11444
[ticket/11444] Moving the in-board notifications to a method class
Diffstat (limited to 'phpBB/phpbb/notification/method/messenger_base.php')
-rw-r--r--phpBB/phpbb/notification/method/messenger_base.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/phpBB/phpbb/notification/method/messenger_base.php b/phpBB/phpbb/notification/method/messenger_base.php
index bde4573117..74a1811155 100644
--- a/phpBB/phpbb/notification/method/messenger_base.php
+++ b/phpBB/phpbb/notification/method/messenger_base.php
@@ -19,6 +19,29 @@ namespace phpbb\notification\method;
*/
abstract class messenger_base extends \phpbb\notification\method\base
{
+ /** @var \phpbb\user_loader */
+ protected $user_loader;
+
+ /** @var string */
+ protected $phpbb_root_path;
+
+ /** @var string */
+ protected $php_ext;
+
+ /**
+ * Notification Method Board Constructor
+ *
+ * @param \phpbb\user_loader $user_loader
+ * @param string $phpbb_root_path
+ * @param string $php_ext
+ */
+ public function __construct(\phpbb\user_loader $user_loader, $phpbb_root_path, $php_ext)
+ {
+ $this->user_loader = $user_loader;
+ $this->phpbb_root_path = $phpbb_root_path;
+ $this->php_ext = $php_ext;
+ }
+
/**
* Notify using phpBB messenger
*
@@ -57,7 +80,6 @@ abstract class messenger_base extends \phpbb\notification\method\base
include($this->phpbb_root_path . 'includes/functions_messenger.' . $this->php_ext);
}
$messenger = new \messenger();
- $board_url = generate_board_url();
// Time to go through the queue and send emails
foreach ($this->queue as $notification)