Double->single converted, framework will abort if application is not found
[core.git] / inc / selector.php
index 0fc66eacc006405a56943f6e3561f93b2d2d5c90..05b2379deb14d45e65ae84af7a455ca0033722cb 100644 (file)
@@ -37,6 +37,12 @@ $configAppIncludes = array(
 // Cache base path/file here
 $basePathFile = FrameworkConfiguration::getInstance()->readConfig('application_path') . FrameworkConfiguration::getInstance()->readConfig('app_name');
 
 // 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
 // Load them all (try only)
 foreach ($configAppIncludes as $appInc) {
        // Skip starter in test mode