Skip to content

Commit

Permalink
correctly registering js language. Otherwise the simple cache will no…
Browse files Browse the repository at this point in the history
…t work and will constantly regenerate the cached views (which is a big issue)
  • Loading branch information
jdalsem committed May 15, 2012
1 parent 40d3516 commit 8da19c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/lib/languages.php
Expand Up @@ -344,7 +344,7 @@ function get_missing_language_keys($language) {
*/
function elgg_languages_init() {
$lang = get_current_language();
elgg_register_simplecache_view("cache/js/languages/$lang");
elgg_register_simplecache_view("js/languages/$lang");
}

elgg_register_event_handler('init', 'system', 'elgg_languages_init');

0 comments on commit 8da19c1

Please sign in to comment.