From 4ca621a36016de1fbb5447e1c1de0b607ba94a7c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 3 Feb 2015 14:46:51 +0300 Subject: add config option CHECK_FOR_UPDATES --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions2.php') diff --git a/include/functions2.php b/include/functions2.php index 75f9bebdd..17d8acb3e 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -242,7 +242,7 @@ $data['reload_on_ts_change'] = !defined('_NO_RELOAD_ON_TS_CHANGE'); - if ($_SESSION["last_version_check"] + 86400 + rand(-1000, 1000) < time()) { + if (CHECK_FOR_UPDATES && $_SESSION["last_version_check"] + 86400 + rand(-1000, 1000) < time()) { $update_result = @check_for_update(); $data["update_result"] = $update_result; -- cgit v1.2.3-54-g00ecf