diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-03-18 00:07:09 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-21 11:59:27 +0200 |
commit | 87eec7cfb66f6072344680743b04bf0186e8ca17 (patch) | |
tree | b10354a8ba153935d13dd0847d11f3565968f93b /phpBB/common.php | |
parent | 34ce2561a0242c9066702e5fa9c92d0a6c77c2d2 (diff) | |
download | forums-87eec7cfb66f6072344680743b04bf0186e8ca17.tar forums-87eec7cfb66f6072344680743b04bf0186e8ca17.tar.gz forums-87eec7cfb66f6072344680743b04bf0186e8ca17.tar.bz2 forums-87eec7cfb66f6072344680743b04bf0186e8ca17.tar.xz forums-87eec7cfb66f6072344680743b04bf0186e8ca17.zip |
[ticket/10714] Create a phpbb_log object and inject it into add_log
PHPBB3-10714
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index c7c5859c25..bbcf8b894f 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -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()); |