diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2018-06-18 20:42:16 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 18:29:22 +0200 |
commit | b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07 (patch) | |
tree | 93bf9fdad16266be9504384e02c76d4b5a04cfa0 /phpBB/includes/functions.php | |
parent | 5815d21427ce015e2e93d32071a79a1134d20536 (diff) | |
download | forums-b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07.tar forums-b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07.tar.gz forums-b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07.tar.bz2 forums-b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07.tar.xz forums-b4d4336ef4043a5b3381a9e70d3bbc6bc6732d07.zip |
[ticket/12627] Add debug.sql_explain parameter
PHPBB3-12627
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 44c51eb1ad..6046bf1d71 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4646,6 +4646,8 @@ function phpbb_check_and_display_sql_report(\phpbb\request\request_interface $re */ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\auth\auth $auth, \phpbb\user $user, \phpbb\event\dispatcher_interface $phpbb_dispatcher) { + global $phpbb_container; + $debug_info = array(); // Output page creation time @@ -4677,7 +4679,7 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php $debug_info[] = 'Load: ' . $user->load; } - if ($auth->acl_get('a_')) + if ($auth->acl_get('a_') && $phpbb_container->getParameter('debug.sql_explain')) { $debug_info[] = '<a href="' . build_url() . '&explain=1">SQL Explain</a>'; } |