Projet

Général

Profil

Révision e013fa40

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.file.inc
95 95
    $query->execute();
96 96
  }
97 97

  
98
  if (module_exists('image') && file_entity_file_get_mimetype_type($file) == 'image' && $file->filesize) {
98
  if (module_exists('image') && file_entity_file_get_mimetype_type($file) == 'image' && $file->filesize && isset($file->original)) {
99
    if (!isset($file->metadata)) {
100
      $file->metadata = array();
101
    }
102

  
103
    if (!isset($file->original->metadata)) {
104
      if (!is_object($file->original)) {
105
        $file->original = new stdClass();
106
      }
107
      $file->original->metadata = array();
108
    }
109

  
99 110
    // If the file has changed dimensions or a new file has been uploaded,
100 111
    // update any image field reference to this file and flush image style
101 112
    // derivatives.

Formats disponibles : Unified diff