Projet

Général

Profil

Révision fc3d89c3

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media/media.install
29 29
 */
30 30
function _media_install_copy_icons() {
31 31
  $destination = variable_get('media_icon_base_directory', 'public://media-icons') . '/' . variable_get('media_icon_set', 'default');
32
  if (!file_prepare_directory($destination, FILE_CREATE_DIRECTORY)) {
32
  if (!file_prepare_directory($destination, FILE_MODIFY_PERMISSIONS || FILE_CREATE_DIRECTORY)) {
33 33
    throw new Exception("Unable to create directory $destination.");
34 34
  }
35 35
  // @todo If we ever add another default icon set, this should copy all images from one directory up.

Formats disponibles : Unified diff