mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:21:43 +02:00
[ticket/10714] Create a phpbb_log object and inject it into add_log
PHPBB3-10714
This commit is contained in:
@@ -139,6 +139,10 @@ foreach ($cache->obtain_hooks() as $hook)
|
||||
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
|
||||
}
|
||||
|
||||
// make sure add_log uses this log instance
|
||||
$phpbb_log = new phpbb_log(LOG_TABLE);
|
||||
add_log($phpbb_log); // "dependency injection" for a function
|
||||
|
||||
if (!$config['use_system_cron'])
|
||||
{
|
||||
$cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver());
|
||||
|
Reference in New Issue
Block a user