aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/common.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index bbcf8b894f..799c1162b1 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -76,6 +76,7 @@ if (!empty($load_extensions) && function_exists('dl'))
require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
+require($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
@@ -142,6 +143,10 @@ foreach ($cache->obtain_hooks() as $hook)
// make sure add_log uses this log instance
$phpbb_log = new phpbb_log(LOG_TABLE);
add_log($phpbb_log); // "dependency injection" for a function
+// Parameter 2 and 3 are passed by reference, so we need to create a variable for it.
+$tmp_var = '';
+view_log($phpbb_log, $tmp_var, $tmp_var); // "dependency injection" for a function
+unset($tmp_var);
if (!$config['use_system_cron'])
{