aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-14 21:05:11 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-14 21:05:11 -0400
commit4c391e8cbdfb7a51392244d3f3ff0af35b1adb88 (patch)
tree1c5963893e643ee1f47d964da24d8da2abd46c52 /engine/lib/plugins.php
parentfd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f (diff)
downloadelgg-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.php4
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) {