Still a bit silly but seems to work
authorRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 12:47:47 +0000 (12:47 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 12:47:47 +0000 (12:47 +0000)
inc/mysql-connect.php

index 20d19f4..7bf73db 100644 (file)
@@ -68,12 +68,6 @@ if ((!isInstalling()) && (isInstalled())) {
        // Load "databases" aka static arrays
        loadIncludeOnce('inc/databases.php');
 
-       // Init session
-       loadIncludeOnce('inc/session.php');
-
-       // Load versions
-       loadIncludeOnce('inc/versions.php');
-
        // Load configuration file(s) here
        loadIncludeOnce('inc/load_config.php');
 
@@ -101,6 +95,12 @@ if ((!isInstalling()) && (isInstalled())) {
                                // Load configuration stuff
                                loadConfiguration();
 
+                               // Init session
+                               loadIncludeOnce('inc/session.php');
+
+                               // Load versions
+                               loadIncludeOnce('inc/versions.php');
+
                                // Loading patching system is required here...
                                loadIncludeOnce('inc/patch-system.php');
 
@@ -231,6 +231,12 @@ if ((!isInstalling()) && (isInstalled())) {
        loadIncludeOnce('inc/load_config.php');
 }
 
+// Init session
+loadIncludeOnce('inc/session.php');
+
+// Load versions
+loadIncludeOnce('inc/versions.php');
+
 if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!isInstalling()) && ($GLOBALS['output_mode'] != '1')) {
        // One or more fatal error(s) occur during connect...
        loadIncludeOnce('inc/header.php');