diff --git a/devel.module b/devel.module index 246027907226869146c45a0f4cc368495bc0803f..98a3c3b3457907dcf27a9e483dabb943bc295f1b 100644 --- a/devel.module +++ b/devel.module @@ -1640,8 +1640,10 @@ function ddebug_backtrace() { if (user_access('access devel information')) { $trace = debug_backtrace(); array_shift($trace); - foreach ($trace as $key => $value) { - $rich_trace[$value['function']] = $value; + $count = count($trace); + foreach ($trace as $i => $call) { + $key = ($count - $i) . ': ' . $call['function']; + $rich_trace[$key] = $call; } if (has_krumo()) { print krumo($rich_trace);