|
@ -121,6 +121,9 @@ class FrontController |
|
|
return (!DEBUG) ? $html : Profiler::getInstance()->end($html); |
|
|
return (!DEBUG) ? $html : Profiler::getInstance()->end($html); |
|
|
} catch(Exception $e) { |
|
|
} catch(Exception $e) { |
|
|
if (DEBUG == true) { |
|
|
if (DEBUG == true) { |
|
|
|
|
|
if (!headers_sent()) { |
|
|
|
|
|
header('HTTP/1.0 500 Internal Server Error'); |
|
|
|
|
|
} |
|
|
return ErrorHandler::showDebug($e); |
|
|
return ErrorHandler::showDebug($e); |
|
|
} |
|
|
} |
|
|
$layout = new ErrorLayout(); |
|
|
$layout = new ErrorLayout(); |
|
|