mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[feature/event-dispatcher] Implement mutation for page_header ledge.
PHPBB3-9550
This commit is contained in:
parent
be23445b8c
commit
43899ffdf3
@ -4762,9 +4762,10 @@ 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_data();
|
||||
$event->set_data(compact('page_title', 'display_online_list', 'item_id', 'item'));
|
||||
$vars = array('page_title', 'display_online_list', 'item_id', 'item');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.page_header', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
|
||||
// application/xhtml+xml not used because of IE
|
||||
header('Content-type: text/html; charset=UTF-8');
|
||||
|
Loading…
x
Reference in New Issue
Block a user