mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13968] Add core.user_setup_after event
It allows to execute code at the end of user setup. It can replace the phpbb_user_session_handler hook. PHPBB3-13968
This commit is contained in:
parent
dead984f54
commit
9d4228291c
1 changed files with 8 additions and 0 deletions
|
@ -301,6 +301,14 @@ class user extends \phpbb\session
|
||||||
// After calling it we continue script execution...
|
// After calling it we continue script execution...
|
||||||
phpbb_user_session_handler();
|
phpbb_user_session_handler();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute code at the end of user setup
|
||||||
|
*
|
||||||
|
* @event core.user_setup_after
|
||||||
|
* @since 3.1.6-RC1
|
||||||
|
*/
|
||||||
|
$phpbb_dispatcher->dispatch('core.user_setup_after');
|
||||||
|
|
||||||
// If this function got called from the error handler we are finished here.
|
// If this function got called from the error handler we are finished here.
|
||||||
if (defined('IN_ERROR_HANDLER'))
|
if (defined('IN_ERROR_HANDLER'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue