aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 13:00:41 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 13:00:41 +0000
commit6341f41c7e48912e03c3fdb01d108bff8539df06 (patch)
tree8f8f726825c2e9477f07a9ea8d299801a47f3785 /engine/start.php
parente84c224e72f12b8592e1e9f9ae82d63c8224a75d (diff)
downloadelgg-6341f41c7e48912e03c3fdb01d108bff8539df06.tar.gz
elgg-6341f41c7e48912e03c3fdb01d108bff8539df06.tar.bz2
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
Diffstat (limited to 'engine/start.php')
-rw-r--r--engine/start.php21
1 files changed, 13 insertions, 8 deletions
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")) {