aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/start.php')
-rw-r--r--engine/start.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/engine/start.php b/engine/start.php
index fd61dbd6a..1ed294a03 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -82,9 +82,6 @@
throw new InstallationException("Could not load {$file}");
}
- // Autodetect some default configuration settings
- set_default_config();
-
// Load plugins
load_plugins();
@@ -94,12 +91,20 @@
}
+ // Autodetect some default configuration settings
+ set_default_config();
+
// Trigger events
- trigger_event('init', 'system');
+ trigger_event('boot', 'system');
// Forward if we haven't been installed
if ((!is_installed() || !is_db_installed()) && !substr_count($_SERVER["PHP_SELF"],"install.php")) {
forward("install.php");
}
+
+ // Trigger events
+ if (!substr_count($_SERVER["PHP_SELF"],"install.php")) {
+ trigger_event('init', 'system');
+ }
?> \ No newline at end of file