From 5be04aa21c5338880208dd02b87122e8291aecec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 27 Apr 2012 14:27:12 +0000 Subject: [PATCH] Allowed debugBackTrace() to not exit (default is to exit) --- inc/classes/main/class_BaseFrameworkSystem.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 79a60abe..78242807 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -973,9 +973,10 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * Outputs a debug backtrace and stops further script execution * * @param $message An optional message to output + * @param $doExit Whether exit the program (true is default) * @return void */ - public function debugBackTrace ($message = '') { + public function debugBackTrace ($message = '', $doExit = true) { // Sorry, there is no other way getting this nice backtrace if (!empty($message)) { // Output message @@ -985,7 +986,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { print('
');
 		debug_print_backtrace();
 		print('
'); - exit(); + + // Exit program? + if ($doExit === true) { + exit(); + } // END - if } /** -- 2.39.5