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