Problem with additional config files fixed
authorRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 03:38:09 +0000 (03:38 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 03:38:09 +0000 (03:38 +0000)
inc/includes.php

index 7e3f5c9..2cf6aaa 100644 (file)
@@ -28,6 +28,10 @@ $cfg = FrameworkConfiguration::getInstance();
 // Include the class loader function
 require(sprintf("%sinc/loader/class_ClassLoader.php", $cfg->readConfig('base_path')));
 
 // Include the class loader function
 require(sprintf("%sinc/loader/class_ClassLoader.php", $cfg->readConfig('base_path')));
 
+// Shall we include additional configs where you can configure some things? Then
+// Load matching config
+ClassLoader::getInstance()->loadExtraConfigs();
+
 // Does the user has an application specified?
 if (!empty($_GET['app'])) {
        // Set the application from string
 // Does the user has an application specified?
 if (!empty($_GET['app'])) {
        // Set the application from string
@@ -78,9 +82,5 @@ if (is_dir(sprintf("%sdevel", $cfg->readConfig('base_path')))) {
        ClassLoader::getInstance()->loadClasses('devel');
 }
 
        ClassLoader::getInstance()->loadClasses('devel');
 }
 
-// Shall we include additional configs where you can configure some things? Then
-// Load matching config
-ClassLoader::getInstance()->loadExtraConfigs();
-
 // [EOF]
 ?>
 // [EOF]
 ?>