]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
add config option CHECK_FOR_UPDATES
[tt-rss.git] / include / functions2.php
index 75f9bebdda834e17c07a1711437352c8201cf30a..17d8acb3e3e29f92c03e28b90ad2f9973de87b31 100644 (file)
                $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;