Skip to content
Extraits de code Groupes Projets
Valider af7441b8 rédigé par Fil's avatar Fil
Parcourir les fichiers

patch pour les zip a plat (toggg, #645)

parent 5499d8fc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -145,7 +145,11 @@ function spip_action_joindre3($path, $mode, $type, $id, $id_document,$hash, $red
// http://doc.spip.org/@spip_action_joindre5
function spip_action_joindre5($path, $mode, $type, $id, $id_document,$hash, $redirect, &$actifs)
{
return ajouter_un_document($path, basename($path), $type, $id, $mode, $id_document, $actifs);
$pos = strpos($path, '/zip/');
if (!$pos) {
$pos = strpos($path, '/zip_');
}
return ajouter_un_document($path, substr($path, $pos+5), $type, $id, $mode, $id_document, $actifs);
}
// Zip a deballer.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter