diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index c1e7f9e808..6a602b7de8 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -152,8 +152,11 @@ function adm_page_header($page_title) function adm_page_footer($copyright_html = true) { global $db, $config, $template, $user, $auth; - global $phpbb_root_path; - global $request, $phpbb_dispatcher; + global $phpbb_root_path, $phpbb_container; + global $phpbb_dispatcher; + + /** @var \phpbb\controller\helper $controller_helper */ + $controller_helper = $phpbb_container->get('controller.helper'); // A listener can set this variable to `true` when it overrides this function $adm_page_footer_override = false; @@ -175,7 +178,7 @@ function adm_page_footer($copyright_html = true) return; } - phpbb_check_and_display_sql_report($request, $auth, $db); + $controller_helper->display_sql_report(); $template->assign_vars(array( 'DEBUG_OUTPUT' => phpbb_generate_debug_output($db, $config, $auth, $user, $phpbb_dispatcher),