Double->single converted, framework will abort if application is not found
[core.git] / inc / selector.php
index 0fc66ea..05b2379 100644 (file)
@@ -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