From 8d3968c6375076ee6fc0f1235f2a7e3841be56bb Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 17 Jan 2010 22:09:12 +0000 Subject: [PATCH] BUGFIX: Fix display of exception backtrace in CLI view. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97038 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/CliDebugView.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/CliDebugView.php b/dev/CliDebugView.php index a2869e254..568f7135c 100644 --- a/dev/CliDebugView.php +++ b/dev/CliDebugView.php @@ -49,8 +49,9 @@ class CliDebugView extends DebugView { /** * Write a backtrace */ - function writeTrace() { - SS_Backtrace::backtrace(); + function writeTrace($trace = null) { + echo "Trace\n=====\n"; + echo SS_Backtrace::get_rendered_backtrace($trace ? $trace : debug_backtrace(), true); } /**