aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notifications/method/base.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-08 15:48:46 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-08 15:48:46 -0500
commit7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0 (patch)
tree47313d9dbe6adc84d67c08d06a510a4c6fb05b43 /phpBB/includes/notifications/method/base.php
parent7b0b6fc63c2593cafaa84cc38a9b3029af1ed369 (diff)
downloadforums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.gz
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.bz2
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.xz
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.zip
[ticket/11103] Work on the pm type and email method
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/method/base.php')
-rw-r--r--phpBB/includes/notifications/method/base.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/notifications/method/base.php b/phpBB/includes/notifications/method/base.php
index dbf851a059..98c06509c6 100644
--- a/phpBB/includes/notifications/method/base.php
+++ b/phpBB/includes/notifications/method/base.php
@@ -26,6 +26,8 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
protected $phpbb_container;
protected $db;
protected $user;
+ protected $phpbb_root_path;
+ protected $php_ext;
/**
* Queue of messages to be sent
@@ -42,6 +44,9 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
// Some common things we're going to use
$this->db = $phpbb_container->get('dbal.conn');
$this->user = $phpbb_container->get('user');
+
+ $this->phpbb_root_path = $phpbb_container->getParameter('core.root_path');
+ $this->php_ext = $phpbb_container->getParameter('core.php_ext');
}
/**
@@ -65,7 +70,11 @@ abstract class phpbb_notifications_method_base implements phpbb_notifications_me
$this->notify($notification);
}
- // Empty queue
+ $this->empty_queue();
+ }
+
+ protected function empty_queue()
+ {
$this->queue = array();
}
}