1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

[feature/event-dispatcher] Support setting data on an event

PHPBB3-9550
This commit is contained in:
Igor Wiedler
2012-01-07 21:42:19 +01:00
parent 58a99c97ca
commit 03be976137
2 changed files with 58 additions and 1 deletions

View File

@@ -4745,7 +4745,8 @@ 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();
$event = new phpbb_event_data();
$event->set_data(compact('page_title', 'display_online_list', 'item_id', 'item'));
$phpbb_dispatcher->dispatch('page_header', $event);
// application/xhtml+xml not used because of IE