[feature/events] Adding ledge index

Used by phpBB Gallery and various others

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-03-16 00:38:45 +01:00
parent 433442b402
commit 60b21863ca

View file

@ -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')