diff options
author | Steve Clay <steve@mrclay.org> | 2013-03-31 18:18:33 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-03-31 18:18:33 -0400 |
commit | 31f5e27f60f3d9e5fcb3b6b9ab01b9d64a244b87 (patch) | |
tree | 354e8fd0832498345aa2001d610c733394005e94 /js/lib | |
parent | 574e9aefd04a6ea75f53d20756edb6a04a31ba2b (diff) | |
download | elgg-31f5e27f60f3d9e5fcb3b6b9ab01b9d64a244b87.tar.gz elgg-31f5e27f60f3d9e5fcb3b6b9ab01b9d64a244b87.tar.bz2 |
Fixes #3754: Language JS views send cache headers and support conditional get
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/languages.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js index 44ea56d2b..d218cbc4f 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -30,6 +30,9 @@ elgg.reload_all_translations = function(language) { var url, options; url = 'ajax/view/js/languages'; options = {data: {language: lang}}; + if (elgg.config.simplecache_enabled) { + options.data.lc = elgg.config.lastcache; + } options['success'] = function(json) { elgg.add_translation(lang, json); |