diff options
| author | Cash Costello <cash.costello@gmail.com> | 2012-06-14 21:05:11 -0400 | 
|---|---|---|
| committer | Cash Costello <cash.costello@gmail.com> | 2012-06-14 21:05:11 -0400 | 
| commit | 4c391e8cbdfb7a51392244d3f3ff0af35b1adb88 (patch) | |
| tree | 1c5963893e643ee1f47d964da24d8da2abd46c52 /engine/lib/plugins.php | |
| parent | fd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f (diff) | |
| download | elgg-4c391e8cbdfb7a51392244d3f3ff0af35b1adb88.tar.gz elgg-4c391e8cbdfb7a51392244d3f3ff0af35b1adb88.tar.bz2  | |
rewrote the language caching - now not calling register_translations() if we can load the language data from cache
Diffstat (limited to 'engine/lib/plugins.php')
| -rw-r--r-- | engine/lib/plugins.php | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 39a76db5d..d5cd4fe76 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -311,6 +311,10 @@ function elgg_load_plugins() {  		$start_flags = $start_flags & ~ELGG_PLUGIN_REGISTER_VIEWS;  	} +	if (elgg_get_config('i18n_loaded_from_cache')) { +		$start_flags = $start_flags & ~ELGG_PLUGIN_REGISTER_LANGUAGES; +	} +  	$return = true;  	$plugins = elgg_get_plugins('active');  	if ($plugins) {  | 
