Skip to content
Browse files

AUTO_CHECK_INTERVAL --> upgrade_checker::AUTO_CHECK_INTERVAL

Fixes #1624
  • Loading branch information...
1 parent d2c77fd commit 8437a85ac87f8fc6b4ee420bde59eda683140063 @bharat bharat committed Jan 29, 2011
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;
}

0 comments on commit 8437a85

Please sign in to comment.
Something went wrong with that request. Please try again.