mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge remote-tracking branch 'nickvergessen/feature/php-events-4' into develop
This commit is contained in:
@@ -171,8 +171,20 @@ $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'];
|
||||
|
||||
/**
|
||||
* You can use this event to modify the page title and load data for the index
|
||||
*
|
||||
* @event core.index_modify_page_title
|
||||
* @var string page_title Title of the index page
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('page_title');
|
||||
extract($phpbb_dispatcher->trigger_event('core.index_modify_page_title', compact($vars)));
|
||||
|
||||
// Output page
|
||||
page_header($user->lang['INDEX']);
|
||||
page_header($page_title);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'index_body.html')
|
||||
|
Reference in New Issue
Block a user