summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 22:53:34 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 22:53:34 +1000
commitd48ac6fa612d03c689d0ce47ed3a2f721ef36d98 (patch)
tree55e0892df2ce41fdcc331528b8046a54caaa96a5 /inc
parent9654c9d9e738d04e83dcb0ef43cbb7546e51e7e5 (diff)
some more error handling
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php
index ec6166ef..d3be5d1c 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -5,6 +5,7 @@
exit;
}
+ register_shutdown_function('fatal_error_handler');
loadConfig();
function loadConfig() {
@@ -115,13 +116,11 @@
if(function_exists('error')) {
error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']);
} else {
- header('Content-Type: text/plain');
- echo 'Caught fatal error: ' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line'];
+ basic_error_function_because_the_other_isnt_loaded_yet('Caught fatal error: ' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line']);
}
}
}
}
- register_shutdown_function('fatal_error_handler');
// Memcached
function memcached_open() {