mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/php-events] Fix naming and docs of core.index_modify_page_title
PHPBB3-9550
This commit is contained in:
parent
d152c20e4b
commit
e85afc6b83
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue