Support for application local configuration file 'config-local.php' added
[core.git] / inc / selector.php
index 00f35442fbc61dbde65fd8fd8197575e21b3e20d..00b1dffbb1303eec8d6c9947743ce2fa49c8017f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  * @deprecated
@@ -31,6 +31,7 @@ $configAppIncludes = array(
        'exceptions',   // The application's own exception handler
        'loader',               // The application's class loader
        'config',               // The application's own configuration
+       'config-local', // Local configuration file (optional)
        'data',                 // Application data
        'init',                 // The application initializer
        'starter',              // The application starter (calls entryPoint(), etc.)
@@ -51,7 +52,7 @@ foreach ($configAppIncludes as $appInc) {
        if (($appInc == 'starter') && (defined('TEST'))) {
                // Skip it here
                continue;
-       }
+       } // END - if
 
        // Generate a FQFN for the helper class
        $appFqFn = $basePathFile . '/' . $appInc . '.php';
@@ -71,7 +72,10 @@ foreach ($configAppIncludes as $appInc) {
 }
 
 // Remove variables from namespace, which we don't need
-unset($appInc, $configAppIncludes, $appFqFn, $basePathFile);
+unset($appInc);
+unset($configAppIncludes);
+unset($appFqFn);
+unset($basePathFile);
 
 // [EOF]
 ?>