aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 13:22:57 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 13:22:57 +0000
commitca4b43c0c94936a2592cb8a86a0631e4cd26d7af (patch)
tree9d55380970dc700b6e79ca2921eb589029913d2c /engine/start.php
parent6263c4160e6067c4074d349e67f990c6e8130ddf (diff)
downloadelgg-ca4b43c0c94936a2592cb8a86a0631e4cd26d7af.tar.gz
elgg-ca4b43c0c94936a2592cb8a86a0631e4cd26d7af.tar.bz2
Installation issues: fixed
git-svn-id: https://code.elgg.org/elgg/trunk@57 36083f99-b078-4883-b0ff-0f9b5a30f544
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