Index: branches/5.3.x/core/kernel/application.php =================================================================== diff -u -N -r15999 -r16111 --- branches/5.3.x/core/kernel/application.php (.../application.php) (revision 15999) +++ branches/5.3.x/core/kernel/application.php (.../application.php) (revision 16111) @@ -1,6 +1,6 @@ HttpQuery->unescapeRequestVariable($value); + } + + /** * Returns variable passed to the script as $type * * @param string $name Name of variable to retrieve @@ -2724,14 +2738,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(); } /** @@ -3057,4 +3073,4 @@ { return $this->HttpQuery->getClientIp(); } -} \ No newline at end of file +}