From ca4b43c0c94936a2592cb8a86a0631e4cd26d7af Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 3 Mar 2008 13:22:57 +0000 Subject: Installation issues: fixed git-svn-id: https://code.elgg.org/elgg/trunk@57 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/start.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engine/start.php') 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 -- cgit v1.2.3