aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notification/manager.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-05 18:12:48 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-05 18:12:48 -0500
commitbafb5b0ecad7266c9641624bae2de2f3c7efe500 (patch)
tree8b9e2373ace5fa257ee3d778058d4e308f178704 /phpBB/includes/notification/manager.php
parent6ca2256f77f6795c2c5895e45fd366eccd160da6 (diff)
downloadforums-bafb5b0ecad7266c9641624bae2de2f3c7efe500.tar
forums-bafb5b0ecad7266c9641624bae2de2f3c7efe500.tar.gz
forums-bafb5b0ecad7266c9641624bae2de2f3c7efe500.tar.bz2
forums-bafb5b0ecad7266c9641624bae2de2f3c7efe500.tar.xz
forums-bafb5b0ecad7266c9641624bae2de2f3c7efe500.zip
[ticket/11103] Starting work on combining notifications
Just for posts currently and not yet outputted. PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification/manager.php')
-rw-r--r--phpBB/includes/notification/manager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/notification/manager.php b/phpBB/includes/notification/manager.php
index c1ae61e08a..c5fd41c901 100644
--- a/phpBB/includes/notification/manager.php
+++ b/phpBB/includes/notification/manager.php
@@ -660,6 +660,12 @@ class phpbb_notification_manager
*/
public function get_item_type_class($item_type, $data = array())
{
+ if (!strpos($item_type, 'notification_type_'))
+ {
+ $item_class = $this->get_item_type_class_name($item_type);
+ $item_type = $item_class;
+ }
+
$item = new $item_type($this, $this->db, $this->cache, $this->template, $this->extension_manager, $this->user, $this->auth, $this->config, $this->phpbb_root_path, $this->php_ext);
$item->set_initial_data($data);