Skip to content

Commit

Permalink
Merge pull request phpbb#6697 from marc1706/ticket/17022
Browse files Browse the repository at this point in the history
[ticket/17022] Fix SQL report link
  • Loading branch information
marc1706 authored Jul 27, 2024
2 parents 2afb6bd + a772052 commit 1444a1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpBB/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() . '&amp;explain=1">SQL Explain</a>';
$page_url = build_url();
$page_url .= ((!str_contains($page_url, '?')) ? '?' : '&amp;') . 'explain=1';
$debug_info[] = '<a href="' . $page_url . '">SQL Explain</a>';
}
}

Expand Down

0 comments on commit 1444a1a

Please sign in to comment.