mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 04:42:04 +02:00
[ticket/16346] Don't use deprecated function
PHPBB3-16346
This commit is contained in:
parent
b13fb3298f
commit
03e01bbddd
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user