diff options
| author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-19 08:40:46 +0000 | 
|---|---|---|
| committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-19 08:40:46 +0000 | 
| commit | 52e82d9dd6e827227f30a71c1f1a3e96c5e4f78c (patch) | |
| tree | 9f8b5e60dde856a656bd313110da44a9ddb4660b /engine/start.php | |
| parent | 9a24330c7492120c2018bb04960aaf4c500c032e (diff) | |
| download | elgg-52e82d9dd6e827227f30a71c1f1a3e96c5e4f78c.tar.gz elgg-52e82d9dd6e827227f30a71c1f1a3e96c5e4f78c.tar.bz2  | |
Elgg will now enter light mode (no plugins are loaded, system init doesn't happen) if the parameter lightmode = "true"
git-svn-id: https://code.elgg.org/elgg/trunk@651 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/start.php')
| -rw-r--r-- | engine/start.php | 17 | 
1 files changed, 14 insertions, 3 deletions
diff --git a/engine/start.php b/engine/start.php index af3f20c21..6faf67f12 100644 --- a/engine/start.php +++ b/engine/start.php @@ -31,6 +31,11 @@  	/**
 +	 * Set light mode default
 +	 */
 +		$lightmode = false;
 +		
 +	/**
  	 * Establish handlers
  	 */
 @@ -93,11 +98,16 @@  					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
 -			load_plugins();
 +		// Load plugins, if we're not in light mode
 +			if (!$lightmode)
 +				load_plugins();
  		} else {	// End portion for sanitised installs only
 @@ -117,7 +127,8 @@  		// Trigger events
  			if (!substr_count($_SERVER["PHP_SELF"],"install.php") &&
 -				!substr_count($_SERVER["PHP_SELF"],"setup.php")) {
 +				!substr_count($_SERVER["PHP_SELF"],"setup.php") &&
 +				!$lightmode) {
  				// If default settings haven't been installed, forward to the default settings page
  				trigger_event('init', 'system');
  				if (!datalist_get('default_settings')) {
  | 
