- Patch #750990 by quicksketch, moshe weitzman: missing cleanup of deleted images.

merge-requests/26/head
Dries Buytaert 2010-03-24 07:39:03 +00:00
parent 32566aaee4
commit cc35d98859
1 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ function file_progress_implementation() {
* Implements hook_file_references().
*/
function file_file_references($file) {
$count = file_get_file_reference_count($file);
$count = file_get_file_reference_count($file, NULL, 'file');
return $count ? array('file' => $count) : NULL;
}
@ -883,7 +883,7 @@ function file_icon_map($file) {
* @return
* An integer value.
*/
function file_get_file_reference_count($file, $field = NULL, $field_type = 'file') {
function file_get_file_reference_count($file, $field = NULL, $field_type = NULL) {
// Determine the collection of fields to check.
if (isset($field)) {
// Support $field as 'field name'.