X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fselector.php;h=05b2379deb14d45e65ae84af7a455ca0033722cb;hp=0fc66eacc006405a56943f6e3561f93b2d2d5c90;hb=6d749a6218d922b2f9bca9cc95f67a5cf99ab4fe;hpb=8fc648e98a3076d9a1e7f6a1da05b28a48769c44 diff --git a/inc/selector.php b/inc/selector.php index 0fc66eac..05b2379d 100644 --- a/inc/selector.php +++ b/inc/selector.php @@ -37,6 +37,12 @@ $configAppIncludes = array( // Cache base path/file here $basePathFile = FrameworkConfiguration::getInstance()->readConfig('application_path') . FrameworkConfiguration::getInstance()->readConfig('app_name'); +// Is the directory there? +if (!is_dir($basePathFile)) { + // Not found. + trigger_error('Application ' . FrameworkConfiguration::getInstance()->readConfig('app_name') . ' not found.'); +} // END - if + // Load them all (try only) foreach ($configAppIncludes as $appInc) { // Skip starter in test mode