X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fdatabase.php;h=6b028d36e7207477859c98cb9ec18d7f3c8a81bd;hp=dded16959b719609048f5125c49008e788ac1711;hb=95757f61afe3e0bbd1d8edcd3d50b60fb4299dee;hpb=d26e71af1e28dc1429823bdec244df6303f9b2fb diff --git a/inc/database.php b/inc/database.php index dded1695..6b028d36 100644 --- a/inc/database.php +++ b/inc/database.php @@ -31,12 +31,12 @@ $databaseInstance = NULL; $fqfn = FrameworkConfiguration::getSelfInstance()->getConfigEntry('base_path') . 'inc/database/lib-' . FrameworkConfiguration::getSelfInstance()->getConfigEntry('db_type') . '.php'; // Load the database layer include -if ((file_exists($fqfn)) && (is_file($fqfn)) && (is_readable($fqfn))) { +if (BaseFrameworkSystem::isReadableFile($fqfn)) { // Load the layer require($fqfn); } else { // Layer is missing! - ApplicationEntryPoint::app_exit(sprintf("[Main:] Database layer is missing! (%s) -> R.I.P.", + ApplicationEntryPoint::app_exit(sprintf('[Main:] Database layer is missing! (%s) -> R.I.P.', FrameworkConfiguration::getSelfInstance()->getConfigEntry('db_type') )); }