diff --git a/lib/Cake/View/Elements/exception_stack_trace.ctp b/lib/Cake/View/Elements/exception_stack_trace.ctp index 6d19ff0f4..be016757a 100644 --- a/lib/Cake/View/Elements/exception_stack_trace.ctp +++ b/lib/Cake/View/Elements/exception_stack_trace.ctp @@ -29,12 +29,14 @@ App::uses('Debugger', 'Utility'); printf( '%s line %s', $i, - $stack['file'], + Debugger::trimPath($stack['file']), $stack['line'] ); $excerpt = sprintf(' '; + else: + echo '[internal function]'; endif; echo ' → '; if ($stack['function']): @@ -43,13 +45,13 @@ App::uses('Debugger', 'Utility'); $args[] = Debugger::getType($arg); $params[] = Debugger::exportVar($arg, 2); endforeach; + + $called = isset($stack['class']) ? $stack['class'] . $stack['type'] . $stack['function'] : $stack['function']; printf( - '%s%s%s(%s) ', + '%s(%s) ', $i, - $stack['class'], - $stack['type'], - $stack['function'], + $called, implode(', ', $args) ); $arguments = sprintf('