Révision d1c64ea8
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/file_entity/file_entity.admin.inc | ||
---|---|---|
385 | 385 |
foreach ($files as $file) { |
386 | 386 |
$file_type = file_type_load($file->type); |
387 | 387 |
$account = isset($accounts[$file->uid]) ? $accounts[$file->uid] : NULL; |
388 |
$total_count = (int) isset($result[$file->fid]->total_count) ? $result[$file->fid]->total_count : 0; |
|
388 | 389 |
$options[$file->fid] = array( |
389 | 390 |
'title' => array( |
390 | 391 |
'data' => array( |
... | ... | |
397 | 398 |
'size' => format_size($file->filesize), |
398 | 399 |
'author' => theme('username', array('account' => $account)), |
399 | 400 |
'timestamp' => format_date($file->timestamp, 'short'), |
400 |
'usage' => format_plural((int) $result[$file->fid]->total_count, '1 place', '@count places'),
|
|
401 |
'usage' => format_plural($total_count, '1 place', '@count places'),
|
|
401 | 402 |
); |
402 | 403 |
|
403 | 404 |
// Show a warning for files that do not exist. |
Formats disponibles : Unified diff
Weekly update of contrib modules