Permalink
Browse files

[feature/event-dispatcher] Update core.page_header event

Update it to the new correct format.

PHPBB3-9550
  • Loading branch information...
1 parent b250ffc commit 0d6a5cb6ae29348a247c8f42e2046c8b84741aa5 @michaelcullum michaelcullum committed with Mar 30, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 phpBB/includes/functions.php
@@ -4763,9 +4763,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
));
$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));
+ extract($phpbb_dispatcher->trigger_event('core.page_header', compact($vars)));
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');

0 comments on commit 0d6a5cb

Please sign in to comment.