From 03e01bbdddeb95a2f3e4300c0ac227627f15fd87 Mon Sep 17 00:00:00 2001 From: rubencm Date: Mon, 22 Jun 2020 20:43:50 +0000 Subject: [PATCH] [ticket/16346] Don't use deprecated function PHPBB3-16346 --- phpBB/includes/functions_acp.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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),