aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-20 15:36:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-20 15:36:47 +0000
commit6f8da12756183dc29227b3b4c07650ef293144d0 (patch)
tree0b27a48aa431ca5da719f86e795d3986381a2c2c
parentb17b5ed4b62eb75e96f4bf9dca2d309d73009c3d (diff)
downloadelgg-6f8da12756183dc29227b3b4c07650ef293144d0.tar.gz
elgg-6f8da12756183dc29227b3b4c07650ef293144d0.tar.bz2
Removed non-working "lightmode" option.
git-svn-id: http://code.elgg.org/elgg/trunk@5454 36083f99-b078-4883-b0ff-0f9b5a30f544
-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');