From 6341f41c7e48912e03c3fdb01d108bff8539df06 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 20 Jun 2008 13:00:41 +0000 Subject: Closes #60: Enable/disable plugins on a site by site basis http://trac.elgg.org/elgg/ticket/60 git-svn-id: https://code.elgg.org/elgg/trunk@1021 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/start.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'engine/start.php') diff --git a/engine/start.php b/engine/start.php index bab80c2aa..ed452d78f 100644 --- a/engine/start.php +++ b/engine/start.php @@ -126,16 +126,8 @@ throw new InstallationException("Could not load {$file}"); } - // Determine light mode - $lm = strtolower(get_input('lightmode')); - if ($lm == 'true') $lightmode = true; - // Set default config set_default_config(); - - // Load plugins, if we're not in light mode - if (!$lightmode) - load_plugins(); } else { // End portion for sanitised installs only @@ -148,6 +140,19 @@ // Trigger events trigger_elgg_event('boot', 'system'); + + // Load plugins + + // Determine light mode + $lm = strtolower(get_input('lightmode')); + if ($lm == 'true') $lightmode = true; + + // Load plugins, if we're not in light mode + if (!$lightmode) { + load_plugins(); + + trigger_elgg_event('plugins_boot', 'system'); + } // Forward if we haven't been installed if ((!is_installed() || !is_db_installed()) && !substr_count($_SERVER["PHP_SELF"],"install.php") && !substr_count($_SERVER["PHP_SELF"],"css.php") && !substr_count($_SERVER["PHP_SELF"],"action_handler.php")) { -- cgit v1.2.3