diff options
author | Andrew Dolgov <[email protected]> | 2015-02-03 14:46:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-02-03 14:46:51 +0300 |
commit | 4ca621a36016de1fbb5447e1c1de0b607ba94a7c (patch) | |
tree | 9d7ef18c6d9d4c8f8f4d1c9a5dbfceeb9fd5acf4 /include/functions2.php | |
parent | 480b2de3b130a10ead9c3c1c0e5048c56ba69b85 (diff) |
add config option CHECK_FOR_UPDATES
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |