From e85afc6b83559742e87d85e7a385bf08b27a8c25 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 Aug 2012 20:59:38 +0200 Subject: [PATCH] [feature/php-events] Fix naming and docs of core.index_modify_page_title PHPBB3-9550 --- phpBB/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/index.php b/phpBB/index.php index febd630a2b..90d1d352e0 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -173,8 +173,15 @@ $template->assign_vars(array( $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_page_title', compact($vars))); +extract($phpbb_dispatcher->trigger_event('core.index_modify_page_title', compact($vars))); // Output page page_header($page_title);