From 2d230ec1655b42bdc57fed78fba6ee345c5c0f95 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 21 Nov 2005 02:08:09 +0000 Subject: [PATCH] Always show the backtrace --- kernel.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kernel.php b/kernel.php index 16f3834..ff39506 100644 --- a/kernel.php +++ b/kernel.php @@ -368,7 +368,6 @@ class Shared_Object_Framework * @param string The content of the message * @param integer Type of message to be printed * @param bool Return the output? - * @param bool Include the debug stack? * * @return mixed Output or null */ @@ -397,16 +396,13 @@ class Shared_Object_Framework break; } - if ($this->debug) - { - $backtrace = debug_backtrace(); - unset($backtrace[0]); - } + $backtrace = debug_backtrace(); + unset($backtrace[0]); $output = "\n
\n"; $output .= "\n\n\t\n"; $output .= "\n\n\t\n"; - $output .= ($this->debug ? "\n\n\t\n" : ''); + $output .= "\n\n\t\n"; $output .= "\n
$prefix: $title
$message
Debug Stack:
" . print_r($backtrace, true) . "
Debug Stack:
" . print_r($backtrace, true) . "
\n
\n"; if ($return) -- 2.43.5