aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-12 20:27:01 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-12 20:27:01 +0000
commit833b994f3171ac511872b86fbd51e8314dbc023a (patch)
tree7d821207cc452a3add40f8ad0fb9c00265627275 /views
parent37881edcff91abd6426b72efaf07c73bd8f80bb1 (diff)
downloadelgg-833b994f3171ac511872b86fbd51e8314dbc023a.tar.gz
elgg-833b994f3171ac511872b86fbd51e8314dbc023a.tar.bz2
Fixing JS problems when simple cache is disabled.
git-svn-id: http://code.elgg.org/elgg/trunk@8983 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/js/initialize_elgg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/js/initialize_elgg.php b/views/default/js/initialize_elgg.php
index cdadd4d32..09e0b27bc 100644
--- a/views/default/js/initialize_elgg.php
+++ b/views/default/js/initialize_elgg.php
@@ -9,7 +9,7 @@
*/
elgg.config.lastcache = <?php echo (int)elgg_get_config('lastcache'); ?>;
elgg.config.viewtype = '<?php echo elgg_get_viewtype(); ?>';
-elgg.config.simplecache_enabled = <?php echo elgg_is_simplecache_enabled(); ?>;
+elgg.config.simplecache_enabled = <?php echo (int)elgg_is_simplecache_enabled(); ?>;
elgg.security.token.__elgg_ts = <?php echo $ts = time(); ?>;
elgg.security.token.__elgg_token = '<?php echo generate_action_token($ts); ?>';