aboutsummaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/application.php')
-rw-r--r--core/application.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/application.php b/core/application.php
index 2f6a277..a907a27 100644
--- a/core/application.php
+++ b/core/application.php
@@ -115,6 +115,18 @@ foreach([
require 'configuration.php';
#===============================================================================
+# Include functions
+#===============================================================================
+require 'functions.php';
+
+#===============================================================================
+# Include migration detection
+#===============================================================================
+if(Application::get('MIGRATOR.ENABLED')) {
+ require 'migrations.php';
+}
+
+#===============================================================================
# Override configuration if admin
#===============================================================================
if(defined('ADMINISTRATION') AND ADMINISTRATION === TRUE) {
@@ -140,24 +152,12 @@ if(defined('ADMINISTRATION') AND ADMINISTRATION === TRUE) {
}
#===============================================================================
-# Include functions
-#===============================================================================
-require 'functions.php';
-
-#===============================================================================
# Get Language and Database singletons
#===============================================================================
$Language = Application::getLanguage();
$Database = Application::getDatabase();
#===============================================================================
-# Include migration detection
-#===============================================================================
-if(Application::get('MIGRATOR.ENABLED')) {
- require 'migrations.php';
-}
-
-#===============================================================================
# Check if "304 Not Modified" and ETag header should be sent
#===============================================================================
if(Application::get('CORE.SEND_304') AND !defined('ADMINISTRATION')) {