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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user