aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/start.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/engine/start.php b/engine/start.php
index 770d2869a..aade0a817 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -44,11 +44,6 @@ foreach ($required_files as $file) {
$oldview = get_input('view');
set_input('view', 'failsafe');
-/**
- * Set light mode default
- */
-$lightmode = false;
-
// Register the error handler
set_error_handler('__elgg_php_error_handler');
set_exception_handler('__elgg_php_exception_handler');
@@ -96,14 +91,8 @@ trigger_elgg_event('boot', 'system');
$installed = is_installed();
$db_installed = is_db_installed();
-// Determine light mode
-$lm = strtolower(get_input('lightmode'));
-if ($lm == 'true') {
- $lightmode = true;
-}
-
// Load plugins, if we're not in light mode
-if (($installed) && ($db_installed) && ($sanitised) && (!$lightmode)) {
+if (($installed) && ($db_installed) && ($sanitised)) {
load_plugins();
trigger_elgg_event('plugins_boot', 'system');
@@ -120,9 +109,8 @@ if ((!$installed || !$db_installed)
}
// Trigger events
-if (!substr_count($_SERVER["PHP_SELF"],"install.php") &&
- !substr_count($_SERVER["PHP_SELF"],"setup.php") &&
- !$lightmode
+if (!substr_count($_SERVER["PHP_SELF"],"install.php")
+ && !substr_count($_SERVER["PHP_SELF"],"setup.php")
&& !(defined('upgrading') && upgrading == 'upgrading')) {
trigger_elgg_event('init', 'system');