Merge pull request #3460 from annando/1705-dbclean

dbclean is now using the new database functions
This commit is contained in:
Hypolite Petovan 2017-05-12 11:45:27 -04:00 committed by GitHub
commit 06ea23665c
7 changed files with 124 additions and 89 deletions

View file

@ -729,8 +729,8 @@ class App {
*
* @return string
*/
function callstack() {
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 6);
function callstack($depth = 4) {
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $depth + 2);
// We remove the first two items from the list since they contain data that we don't need.
array_shift($trace);