From 60b21863cada022b9fdcda17de82aa484c4ac571 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 16 Mar 2012 00:38:45 +0100 Subject: [PATCH] [feature/events] Adding ledge index Used by phpBB Gallery and various others PHPBB3-9550 --- phpBB/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/index.php b/phpBB/index.php index a477a876ad..87b0adeafd 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -171,8 +171,15 @@ $template->assign_vars(array( 'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '') ); +$page_title = $user->lang['INDEX']; + +$vars = array('page_title'); +$event = new phpbb_event_data(compact($vars)); +$phpbb_dispatcher->dispatch('core.index', $event); +extract($event->get_data_filtered($vars)); + // Output page -page_header($user->lang['INDEX']); +page_header($page_title); $template->set_filenames(array( 'body' => 'index_body.html')