Index: core/kernel/application.php =================================================================== --- core/kernel/application.php +++ core/kernel/application.php @@ -2735,14 +2735,16 @@ */ public function ApplicationDie($message = '') { - $message = ob_get_clean() . $message; + while ( ob_get_level() ) { + ob_end_clean(); + } if ( $this->isDebugMode() ) { $message .= $this->Debugger->printReport(true); } - echo $this->UseOutputCompression() ? gzencode($message, DBG_COMPRESSION_LEVEL) : $message; - exit; + $this->HTML = $message; + $this->_outputPage(); } /**