From 4f254ffb5b4a74482c6d70dc1858f20c13ee8c01 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 11 Dec 2011 20:32:43 -0800 Subject: system support for personal configurable ajax update interval --- boot.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'boot.php') 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 )); } -- cgit v1.2.3 From b10e20c59916fa92c631a2535122d7f15f85441e Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 12 Dec 2011 13:41:51 -0800 Subject: revup --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 60cdd326a..2553642fc 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '2.3.1192' ); +define ( 'FRIENDICA_VERSION', '2.3.1193' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1111 ); -- cgit v1.2.3 From e74a960327a0bf14ac3699fa9a28939ed22ae356 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 12 Dec 2011 17:10:19 -0800 Subject: change default ajax interval to 40 seconds --- boot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 2553642fc..b02b0be98 100644 --- a/boot.php +++ b/boot.php @@ -422,9 +422,9 @@ class App { } function init_pagehead() { - $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 30000); + $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000); if($interval < 10000) - $interval = 30000; + $interval = 40000; $this->page['title'] = $this->config['sitename']; $tpl = file_get_contents('view/head.tpl'); -- cgit v1.2.3