1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-05 20:57:49 +02:00

Gelato ErrorHandler and Logger improvments

This commit is contained in:
Awilum
2013-01-25 21:49:28 +02:00
parent 0e5e21d5a3
commit c506bbff08
4 changed files with 18 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ class ErrorHandler
/**
* Dont thow NOTICE exception for PRODUCTION Environment. Just write to log.
*/
if (GELATO_DISPLAY_DEVELOPMENT == false && $code == 8) {
if (GELATO_DEVELOPMENT == false && $code == 8) {
// Get exception info
$error['code'] = $code;
@@ -275,7 +275,7 @@ class ErrorHandler
// Send headers and output
@header('Content-Type: text/html; charset=UTF-8');
if (GELATO_DISPLAY_DEVELOPMENT) {
if (GELATO_DEVELOPMENT) {
$error['backtrace'] = $exception->getTrace();