summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc
index bf14efba9..7696163b0 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -643,7 +643,7 @@ function file_save_upload($source, $validators = array(), $destination = FALSE,
// If we made it this far it's safe to record this file in the database.
$file->status = FILE_STATUS_TEMPORARY;
- $file->timestamp = $_SERVER['REQUEST_TIME'];
+ $file->timestamp = REQUEST_TIME;
drupal_write_record('files', $file);
// Add file to the cache.