diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-22 00:49:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-22 00:49:13 +0000 |
commit | cc421475b7313b59b32ca7aa68c5a533f1ffcea8 (patch) | |
tree | f0f7f912afccf4b5fdf0907b01b17b69961b2b0b /modules/file/file.module | |
parent | 774710328b85c3d9be21846a53bcce674861d941 (diff) | |
download | brdo-cc421475b7313b59b32ca7aa68c5a533f1ffcea8.tar.gz brdo-cc421475b7313b59b32ca7aa68c5a533f1ffcea8.tar.bz2 |
- Patch #603236 by bjaspan, catch: add count facility to field_attach_query(). Was ready before code freeze.
Diffstat (limited to 'modules/file/file.module')
-rw-r--r-- | modules/file/file.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.module b/modules/file/file.module index fa8330af4..243ae87a3 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -921,7 +921,7 @@ function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISI if (!isset($references[$field_name])) { // Get each time this file is used within a field. $cursor = 0; - $references[$field_name] = field_attach_query($file_field['id'], array(array('fid', $file->fid)), FIELD_QUERY_NO_LIMIT, $cursor, $age); + $references[$field_name] = field_attach_query($file_field['id'], array(array('fid', $file->fid)), array('limit' => FIELD_QUERY_NO_LIMIT, 'cursor' => &$cursor, 'age'=> $age)); } } |