aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-01-07 20:54:01 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-01-07 20:54:01 +0100
commit58a99c97cadd6a16b138e4de4f8fd1aa172e4eed (patch)
tree6342f9141d04452a57b6ba778074bf295c502ed2 /phpBB/includes
parent581b5624f7be3675a35fc61ca6b67b409ae6e8c6 (diff)
downloadforums-58a99c97cadd6a16b138e4de4f8fd1aa172e4eed.tar
forums-58a99c97cadd6a16b138e4de4f8fd1aa172e4eed.tar.gz
forums-58a99c97cadd6a16b138e4de4f8fd1aa172e4eed.tar.bz2
forums-58a99c97cadd6a16b138e4de4f8fd1aa172e4eed.tar.xz
forums-58a99c97cadd6a16b138e4de4f8fd1aa172e4eed.zip
[feature/event-dispatcher] Add a sample hook in page_header
PHPBB3-9550
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 753795b7cf..03376bf906 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4461,6 +4461,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;
if (defined('HEADER_INC'))
{
@@ -4744,6 +4745,9 @@ 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')),
));
+ $event = new phpbb_event();
+ $phpbb_dispatcher->dispatch('page_header', $event);
+
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');