mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge pull request #6697 from marc1706/ticket/17022
[ticket/17022] Fix SQL report link
This commit is contained in:
commit
1444a1a02b
1 changed files with 3 additions and 1 deletions
|
@ -4032,7 +4032,9 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php
|
|||
|
||||
if ($auth->acl_get('a_'))
|
||||
{
|
||||
$debug_info[] = '<a href="' . build_url() . '&explain=1">SQL Explain</a>';
|
||||
$page_url = build_url();
|
||||
$page_url .= ((!str_contains($page_url, '?')) ? '?' : '&') . 'explain=1';
|
||||
$debug_info[] = '<a href="' . $page_url . '">SQL Explain</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue