diff options
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/initialize_elgg.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/js/initialize_elgg.php b/views/default/js/initialize_elgg.php index 7634851f5..6a82b879e 100644 --- a/views/default/js/initialize_elgg.php +++ b/views/default/js/initialize_elgg.php @@ -8,7 +8,7 @@ /** * Don't want to cache these -- they could change for every request */ -elgg.config.lastcache = <?php echo (int)($vars['config']->lastcache); ?>; +elgg.config.lastcache = <?php echo (int)elgg_get_config('lastcache'); ?>; elgg.security.token.__elgg_ts = <?php echo $ts = time(); ?>; elgg.security.token.__elgg_token = '<?php echo generate_action_token($ts); ?>'; |