Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AUTO_CHECK_INTERVAL --> upgrade_checker::AUTO_CHECK_INTERVAL

Fixes #1624
  • Loading branch information...
commit 8437a85ac87f8fc6b4ee420bde59eda683140063 1 parent d2c77fd
@bharat bharat authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  modules/gallery/helpers/upgrade_checker.php
View
3  modules/gallery/helpers/upgrade_checker.php
@@ -42,7 +42,8 @@ static function auto_check_enabled() {
static function should_auto_check() {
if (upgrade_checker::auto_check_enabled() && random::int(1, 100) == 1) {
$version_info = upgrade_checker::version_info();
- return (!$version_info || (time() - $version_info->timestamp) > AUTO_CHECK_INTERVAL);
+ return (!$version_info ||
+ (time() - $version_info->timestamp) > upgrade_checker::AUTO_CHECK_INTERVAL);
}
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.