diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-04-13 06:25:39 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-04-13 06:25:39 -0700 |
commit | d679c1578633a15c91561b1a23c8eee281823a75 (patch) | |
tree | 48b9ae6058c61e216af604117aa80db7c28ba6cb /js | |
parent | 46f4c707dc302979bf142c41b65546966287aa84 (diff) | |
parent | 31f5e27f60f3d9e5fcb3b6b9ab01b9d64a244b87 (diff) | |
download | elgg-d679c1578633a15c91561b1a23c8eee281823a75.tar.gz elgg-d679c1578633a15c91561b1a23c8eee281823a75.tar.bz2 |
Merge pull request #5308 from mrclay/3754-18
Fixes #3754: Language JS views send cache headers and support conditional get
Diffstat (limited to 'js')
-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); |