From a7720522a26d8b3cac53617f999f533bf29ea8de Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 26 Jul 2024 18:56:36 +0200 Subject: [PATCH] [ticket/17022] Fix SQL report link PHPBB-17022 --- phpBB/includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 67a6d0ca6d..2451c10164 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4032,7 +4032,9 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php if ($auth->acl_get('a_')) { - $debug_info[] = 'SQL Explain'; + $page_url = build_url(); + $page_url .= ((!str_contains($page_url, '?')) ? '?' : '&') . 'explain=1'; + $debug_info[] = 'SQL Explain'; } }