aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notifications/service.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-08 12:05:55 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-08 12:05:55 -0500
commite45fb0025ec8c27147caee7e3c14902f2e3f02c5 (patch)
tree76dd5547683c771e3b221cbec5f7c392fa01a216 /phpBB/includes/notifications/service.php
parent44f07df96fbf933bc20166a516bf0eecee00df4c (diff)
downloadforums-e45fb0025ec8c27147caee7e3c14902f2e3f02c5.tar
forums-e45fb0025ec8c27147caee7e3c14902f2e3f02c5.tar.gz
forums-e45fb0025ec8c27147caee7e3c14902f2e3f02c5.tar.bz2
forums-e45fb0025ec8c27147caee7e3c14902f2e3f02c5.tar.xz
forums-e45fb0025ec8c27147caee7e3c14902f2e3f02c5.zip
[ticket/11103] Output the notifications to the template
For now, just dumping the notifications in the header. PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notifications/service.php')
-rw-r--r--phpBB/includes/notifications/service.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/notifications/service.php b/phpBB/includes/notifications/service.php
index fd2c51a330..8db414cb16 100644
--- a/phpBB/includes/notifications/service.php
+++ b/phpBB/includes/notifications/service.php
@@ -87,14 +87,14 @@ class phpbb_notifications_service
while ($row = $this->db->sql_fetchrow($result))
{
- $type_class_name = $this->get_type_class_name($row['type'], true);
+ $type_class_name = $this->get_type_class_name($row['item_type'], true);
$notification = new $type_class_name($this->phpbb_container, $row);
$notification->users($this->users);
$user_ids = array_merge($user_ids, $notification->users_to_query());
- $notifications[] = $notification();
+ $notifications[] = $notification;
}
$this->db->sql_freeresult($result);