mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix custom query caller location being shown as DB.php in debug info
This commit is contained in:
parent
0f0dbbb40c
commit
dc492345da
1 changed files with 1 additions and 1 deletions
|
|
@ -1189,7 +1189,7 @@ class DB
|
|||
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
foreach ($backtrace as $no => $call)
|
||||
{
|
||||
if (!preg_match('#/common/framework/(?:db|helpers)\b#', $call['file']) && $call['file'] !== \RX_BASEDIR . 'common/legacy.php')
|
||||
if (!preg_match('#/common/framework/(?:DB|helpers)\b#', $call['file']) && $call['file'] !== \RX_BASEDIR . 'common/legacy.php')
|
||||
{
|
||||
$result['called_file'] = $backtrace[$no]['file'];
|
||||
$result['called_line'] = $backtrace[$no]['line'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue