aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-17 17:22:46 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-17 17:22:46 -0700
commit9f5634b5eef06a36f39fa3003ecaa969ef86df75 (patch)
tree846371c86f5be0847925a7909b1a8f051473b63c /engine/lib/plugins.php
parent242ea5fa2b1ac775b74cf118a8b81d79e531104a (diff)
parent460b47b7cedb7b9af16d8d62e5b7b8b9eadff508 (diff)
downloadelgg-9f5634b5eef06a36f39fa3003ecaa969ef86df75.tar.gz
elgg-9f5634b5eef06a36f39fa3003ecaa969ef86df75.tar.bz2
Merge pull request #274 from cash/language_caching
Fixes #4538 Language caching rewrite
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) {