1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

add config option CHECK_FOR_UPDATES

This commit is contained in:
Andrew Dolgov
2015-02-03 14:46:51 +03:00
parent 480b2de3b1
commit 4ca621a360
3 changed files with 6 additions and 3 deletions

View File

@@ -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;