[ticket/16346] Don't use deprecated function

PHPBB3-16346
This commit is contained in:
rubencm 2020-06-22 20:43:50 +00:00
parent b13fb3298f
commit 03e01bbddd

View file

@ -152,8 +152,11 @@ function adm_page_header($page_title)
function adm_page_footer($copyright_html = true) function adm_page_footer($copyright_html = true)
{ {
global $db, $config, $template, $user, $auth; global $db, $config, $template, $user, $auth;
global $phpbb_root_path; global $phpbb_root_path, $phpbb_container;
global $request, $phpbb_dispatcher; 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 // A listener can set this variable to `true` when it overrides this function
$adm_page_footer_override = false; $adm_page_footer_override = false;
@ -175,7 +178,7 @@ function adm_page_footer($copyright_html = true)
return; return;
} }
phpbb_check_and_display_sql_report($request, $auth, $db); $controller_helper->display_sql_report();
$template->assign_vars(array( $template->assign_vars(array(
'DEBUG_OUTPUT' => phpbb_generate_debug_output($db, $config, $auth, $user, $phpbb_dispatcher), 'DEBUG_OUTPUT' => phpbb_generate_debug_output($db, $config, $auth, $user, $phpbb_dispatcher),