diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-02-03 02:25:32 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-03-18 02:48:55 -0400 |
commit | 43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2 (patch) | |
tree | 9308eb181f99b62049c17162aa11f02f1163ae45 /phpBB/includes/functions.php | |
parent | be23445b8c40b99c0d27bfb99521022d7b4705e8 (diff) | |
download | forums-43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2.tar forums-43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2.tar.gz forums-43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2.tar.bz2 forums-43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2.tar.xz forums-43899ffdf3e36cf2d107bf5a09c5f37faffdf3c2.zip |
[feature/event-dispatcher] Implement mutation for page_header ledge.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 024fa612f0..bd7ed71dcb 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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'); |