Several kinky code smoothed, fixes for admin login
[mailer.git] / inc / mysql-connect.php
index f6c1a1f1264f56d8ae6884cbda82cae2c53da8bf..a733ea9abd2440a6c38aa14c0f974e3fcc7b151d 100644 (file)
@@ -70,16 +70,12 @@ initMessages();
 
 // Check if this file is writeable or read-only and warn the user
 if (!isInstalling()) {
-       // Load database layer here
-       loadIncludeOnce('inc/db/lib.php');
-
-       // Set missing module
-       if ((!isModuleSet()) && (isGetRequestElementSet('module'))) setModule(getRequestElement('module'));
-       if (!isModuleSet()) setModule('index');
-
        // Load configuration file(s) here
        loadIncludeOnce('inc/load_config.php');
 
+       // Load database layer here
+       loadIncludeOnce('inc/db/lib.php');
+
        // CSS array
        initExtensionCssFiles();