aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-08-20 09:09:53 -0400
committerDavid King <imkingdavid@gmail.com>2012-08-20 09:09:53 -0400
commit310c9069328172a7c0cb890d96b5eb4d14523e78 (patch)
tree8a64fcb4ee4e1321e803aef6c79b12895e1d01d5 /phpBB/index.php
parent8c62c33f2a8ab48f05938d55c80b1bf37f9a37d5 (diff)
parentb567175c8d49b774e48fe7cf632d96babb434076 (diff)
downloadforums-310c9069328172a7c0cb890d96b5eb4d14523e78.tar
forums-310c9069328172a7c0cb890d96b5eb4d14523e78.tar.gz
forums-310c9069328172a7c0cb890d96b5eb4d14523e78.tar.bz2
forums-310c9069328172a7c0cb890d96b5eb4d14523e78.tar.xz
forums-310c9069328172a7c0cb890d96b5eb4d14523e78.zip
Merge remote-tracking branch 'nickvergessen/feature/php-events-4' into develop
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index c13f3c06ab..0ac8034d7f 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -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&amp;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')