Changeset 92718 in spip-zone


Ignore:
Timestamp:
Nov 6, 2015, 7:14:21 PM (4 years ago)
Author:
p@…
Message:

Nettoyer la session après suppression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/uploadhtml5/trunk/action/supprimer_document_tmp.php

    r92717 r92718  
    3131        autoriser_exception('supprimer', 'document', $arg, false);
    3232
     33        // On nettoye le tableau de session suite à la suppression
     34        include_spip('inc/session');
     35        $upload = session_get('upload');
     36        unset($upload[array_search($arg, $upload)]);
     37        session_set('upload', $upload);
     38    }
    3339}
Note: See TracChangeset for help on using the changeset viewer.