Fix for missing function GET_CURR_THEME()
[mailer.git] / inc / mysql-connect.php
index fe540b0..9dbbab3 100644 (file)
@@ -154,18 +154,18 @@ if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndT
                                // Loading patching system is required here...
                                require_once(PATH."inc/patch-system.php"); // Initialize patch system
 
-                               // Session management
-                               require_once(PATH."inc/session.php");
-
-                               // Run daily reset
-                               require_once(PATH."inc/check-reset.php");
-
                                // Create missing configuration file
                                if (!function_exists('GET_CURR_THEME')) {
                                        // Load dummy theme functions
                                        require_once(PATH."inc/theme-dummy.php");
                                } // END - if
 
+                               // Session management
+                               require_once(PATH."inc/session.php");
+
+                               // Run daily reset
+                               require_once(PATH."inc/check-reset.php");
+
                                // Load admin include file if he is admin
                                if (IS_ADMIN()) {
                                        // Administrative functions