mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[ticket/12932] Add method for getting the datetime class and allow overriding
An extension can now override the datetime class by overwriting the datetime.class parameter in their own yml file. PHPBB3-12932
This commit is contained in:
@@ -240,7 +240,7 @@ $sub = $request->variable('sub', '');
|
||||
// Set PHP error handler to ours
|
||||
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
|
||||
|
||||
$user = new \phpbb\user();
|
||||
$user = new \phpbb\user('\phpbb\datetime');
|
||||
$auth = new \phpbb\auth\auth();
|
||||
|
||||
// Add own hook handler, if present. :o
|
||||
|
Reference in New Issue
Block a user