summaryrefslogtreecommitdiff
path: root/modules/file/file.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/file/file.module')
-rw-r--r--modules/file/file.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index df0d11e34..81c6000e5 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -141,7 +141,7 @@ function file_file_download($uri, $field_type = 'file') {
}
// Find out which (if any) fields of this type contain the file.
- $references = file_get_file_references($file, NULL, FIELD_LOAD_REVISION, $field_type);
+ $references = file_get_file_references($file, NULL, FIELD_LOAD_CURRENT, $field_type);
// If there are no references, stop processing, to avoid returning headers
// for files controlled by other modules.