aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.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/functions.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/functions.php')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 834f57a38b..7632ea1fcb 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4778,7 +4778,7 @@ function phpbb_http_login($param)
function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')
{
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path;
- global $phpbb_dispatcher;
+ global $phpbb_dispatcher, $phpbb_container;
if (defined('HEADER_INC'))
{
@@ -5092,6 +5092,13 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
'A_COOKIE_SETTINGS' => addslashes('; path=' . $config['cookie_path'] . ((!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain']) . ((!$config['cookie_secure']) ? '' : '; secure')),
));
+ // Output the notifications
+ $phpbb_notifications = $phpbb_container->get('notifications');
+ foreach ($phpbb_notifications->load_notifications() as $notification)
+ {
+ $notification->display();
+ }
+
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');