aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-11 20:32:43 -0800
committerfriendica <info@friendica.com>2011-12-11 20:32:43 -0800
commit4f254ffb5b4a74482c6d70dc1858f20c13ee8c01 (patch)
treec043caef2b9510b2eaeecb093b3adc6f3826c395 /boot.php
parent834639ebab3daded63c3ed076273e69b798ced90 (diff)
downloadvolse-hubzilla-4f254ffb5b4a74482c6d70dc1858f20c13ee8c01.tar.gz
volse-hubzilla-4f254ffb5b4a74482c6d70dc1858f20c13ee8c01.tar.bz2
volse-hubzilla-4f254ffb5b4a74482c6d70dc1858f20c13ee8c01.zip
system support for personal configurable ajax update interval
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 8452108ff..60cdd326a 100644
--- a/boot.php
+++ b/boot.php
@@ -422,6 +422,10 @@ class App {
}
function init_pagehead() {
+ $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 30000);
+ if($interval < 10000)
+ $interval = 30000;
+
$this->page['title'] = $this->config['sitename'];
$tpl = file_get_contents('view/head.tpl');
$this->page['htmlhead'] = replace_macros($tpl,array(
@@ -430,7 +434,8 @@ class App {
'$delitem' => t('Delete this item?'),
'$comment' => t('Comment'),
'$showmore' => t('show more'),
- '$showfewer' => t('show fewer')
+ '$showfewer' => t('show fewer'),
+ '$update_interval' => $interval
));
}