mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Replace debug comment with new system
This commit is contained in:
parent
3648b8f156
commit
d63900547e
4 changed files with 191 additions and 179 deletions
|
|
@ -144,7 +144,8 @@ class Debug
|
|||
}
|
||||
|
||||
// Get the backtrace.
|
||||
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
|
||||
$backtrace = debug_backtrace($backtrace_args);
|
||||
|
||||
// Prepare the error entry.
|
||||
self::$_errors[] = $errinfo = (object)array(
|
||||
|
|
@ -167,9 +168,9 @@ class Debug
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function addQuery()
|
||||
public static function addQuery($query)
|
||||
{
|
||||
|
||||
self::$_queries[] = $query;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue