From 237c4a308525e4c57f70d9cb1b52cf942e9f5269 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 23 Nov 2005 21:03:45 +0000 Subject: [PATCH] Allow the debug stack to be durned off in _message() --- kernel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel.php b/kernel.php index d7775d1..076727b 100644 --- a/kernel.php +++ b/kernel.php @@ -368,10 +368,11 @@ 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 Show the debug stack? * * @return mixed Output or null */ - function _message($title, $message, $type, $return = false) + function _message($title, $message, $type, $return = false, $stack = true) { switch ($type) { @@ -402,7 +403,7 @@ class Shared_Object_Framework $output = "\n
\n"; $output .= "\n\n\t\n"; $output .= "\n\n\t\n"; - $output .= "\n\n\t\n"; + $output .= ($stack ? "\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