mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12627] Add debug.sql_explain parameter
PHPBB3-12627
This commit is contained in:
@@ -4532,6 +4532,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
|
||||
@@ -4563,7 +4565,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>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user