summaryrefslogtreecommitdiff
path: root/modules/update/update.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-17 07:11:59 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-17 07:11:59 +0000
commit7f29b142770cba60259a22f3760e2376b8e79790 (patch)
treed9ff4c7dfb29dfafb442c2cd1f2e91b2592e63bc /modules/update/update.module
parent6f8b5f9a5baaea6874ffe050ba0210b680070140 (diff)
downloadbrdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.gz
brdo-7f29b142770cba60259a22f3760e2376b8e79790.tar.bz2
- Patch #305645 by pwolanin: ['REQUEST_TIME'] -> REQUEST_TIME. Improved developer experience.
Diffstat (limited to 'modules/update/update.module')
-rw-r--r--modules/update/update.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/update/update.module b/modules/update/update.module
index 15ca24d25..bb3ad973b 100644
--- a/modules/update/update.module
+++ b/modules/update/update.module
@@ -276,7 +276,7 @@ function _update_requirement_check($project, $type) {
function update_cron() {
$frequency = variable_get('update_check_frequency', 1);
$interval = 60 * 60 * 24 * $frequency;
- if ($_SERVER['REQUEST_TIME'] - variable_get('update_last_check', 0) > $interval) {
+ if (REQUEST_TIME - variable_get('update_last_check', 0) > $interval) {
update_refresh();
_update_cron_notify();
}
@@ -342,7 +342,7 @@ function update_get_available($refresh = FALSE) {
}
}
if (!$needs_refresh && ($cache = cache_get('update_info', 'cache_update'))
- && $cache->expire > $_SERVER['REQUEST_TIME']) {
+ && $cache->expire > REQUEST_TIME) {
$available = $cache->data;
}
elseif ($needs_refresh || $refresh) {