Full rewrite of extension updates (multiple updates are supported)
[mailer.git] / inc / mysql-connect.php
index c406522652d56d1033cbbddb0090cd7f59dc26bd..d8d70d7c8abf1dd1827d1867a18e1aa4e967275f 100644 (file)
@@ -105,11 +105,14 @@ if ((!isInstalling()) && (isInstalled())) {
                                // Load configuration stuff
                                loadConfiguration();
 
+                               // Load "databases" aka static arrays
+                               LOAD_INC_ONCE("inc/databases.php");
+
                                // Init session
                                LOAD_INC_ONCE("inc/session.php");
 
-                               // Load "databases" aka static arrays
-                               LOAD_INC_ONCE("inc/databases.php");
+                               // Load versions
+                               LOAD_INC_ONCE("inc/versions.php");
 
                                // Loading patching system is required here...
                                LOAD_INC_ONCE("inc/patch-system.php"); // Initialize patch system
@@ -193,11 +196,14 @@ if ((!isInstalling()) && (isInstalled())) {
        // Set other missing variables
        if (!isset($GLOBALS['output_mode'])) $GLOBALS['output_mode'] = "0";
 
+       // Include databases.php
+       LOAD_INC_ONCE("inc/databases.php");
+
        // Init session
        LOAD_INC_ONCE("inc/session.php");
 
-       // Include databases.php
-       LOAD_INC_ONCE("inc/databases.php");
+       // Load versions
+       LOAD_INC_ONCE("inc/versions.php");
 
        // Check if we are in installation routine
        if ((!isInstalling()) && ($GLOBALS['output_mode'] != "1") && ($GLOBALS['output_mode'] != -1)) {