Commit cb9869a2 authored by Dries's avatar Dries

- Patch #867928 by Damien Tournoud: files and images don't work in private filesystem mode.

parent 82340c42
......@@ -1017,7 +1017,7 @@ function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISI
$fields = isset($field) ? array($field['field_name'] => $field) : field_info_fields();
foreach ($fields as $field_name => $file_field) {
if ((empty($field_type) || $field['type'] == $field_type) && !isset($references[$field_name])) {
if ((empty($field_type) || $file_field['type'] == $field_type) && !isset($references[$field_name])) {
// Get each time this file is used within a field.
$query = new EntityFieldQuery();
$query
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment