Changeset 90904 in spip-zone


Ignore:
Timestamp:
Jul 18, 2015, 6:05:36 PM (4 years ago)
Author:
p@…
Message:

Utiliser la fonction idione pour l'upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/uploadhtml5/trunk/formulaires/uploadhtml5.php

    r90903 r90904  
    5151function formulaires_uploadhtml5_traiter_dist($objet, $id_objet, $mode = 'auto', $ajaxReload = '', $args = array()) {
    5252
    53     // upload de la dropzone
    54     uploadhtml5_uploader_document($objet, $id_objet, $_FILES, 'new', $mode);
     53    if (isset($args['logo']) and $args['logo'] == 'oui')
     54        uploadhtml5_uploader_logo($objet, $id_objet, $_FILES['file_logo']['tmp_name']);
     55    else
     56        uploadhtml5_uploader_document($objet, $id_objet, $_FILES, 'new', $mode);
    5557
    5658    // Donnée de retour.
Note: See TracChangeset for help on using the changeset viewer.