diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php
index 08243a2..4c3e072 100644
--- a/config/dmsDefaults.php
+++ b/config/dmsDefaults.php
@@ -289,6 +289,8 @@ class KTInit {
function handleInitError($oError) {
global $checkup;
if ($checkup === true) {
+ echo $oError->toString();
+ exit(0);
//return;
}
@@ -358,25 +360,15 @@ class KTInit {
function catchFatalErrors()
{
+ ini_set('display_errors','On');
+ $phperror='>
';
+ ini_set('error_prepend_string',$phperror);
- $CustomErrorPage = KTCustomErrorViewer::getCustomErrorRedirectPage();
- if($CustomErrorPage != '0')
- {
- ini_set('display_errors','On');
- $phperror='>
';
- ini_set('error_prepend_string',$phperror);
-
- $sUrl = KTInit::guessRootUrl();
- global $default;
- $sRootUrl = ($default->sslEnabled ? 'https' : 'http') .'://'.$_SERVER['HTTP_HOST'].$sUrl;
-
- $CustomErrorPage = basename($CustomErrorPage);
-
- $phperror='
>
- ';
- ini_set('error_append_string',$phperror);
- }
+ $CustomErrorPage = KTUtil::kt_url().'/customerrorpage.php';
+ $phperror='
>
+ ';
+ ini_set('error_append_string',$phperror);
}