1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[ticket/11103] Output the notifications to the template

For now, just dumping the notifications in the header.

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 12:05:55 -05:00
parent 44f07df96f
commit e45fb0025e
6 changed files with 45 additions and 6 deletions

View File

@@ -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);