<
Depuis la version < 7.6 >
modifié par Paul Libbrecht (admin)
sur 2016/08/19 21:35
À la version < 8.1 >
modifié par Paul Libbrecht (admin)
sur 2016/08/19 22:54
>
Commentaire de modification : Il n'y a aucun commentaire pour cette version

Résumé

Détails

Icon Propriétés de la Page
Contenu
... ... @@ -30,9 +30,9 @@
30 30   System.err.println("Outputting " + att.filename);
31 31   ZipEntry entry = new ZipEntry(att.filename);
32 32   if(uncompressedMimes.contains(att.mimeType))
33 - entry.setMethod(ZipEntry.STORED);
33 + out.setLevel(0);
34 34   else
35 - entry.setMethod(ZipEntry.DEFLATED);
35 + out.setLevel(9);
36 36   entry.setTime(att.getDate().getTime());
37 37   System.err.println("Size: " + att.filesize);
38 38   entry.setSize(att.filesize);
Icon XWiki.WikiMacroClass[0]
Code de la macro
... ... @@ -1,4 +1,4 @@
1 1  {{velocity}}
2 2  #set($url=$xwiki.getURL("Macros.DownloadAttachments","view","page=$doc.fullName"))
3 -{{html clean=false}}<a href="$url">Download page attachments</a>{{/html}}
3 +{{html clean=false}}<a href="$url">{{/html}}{{translation key="rendering.macro.downloadAttachments.label"/}}{{html clean=false}}</a>{{/html}}
4 4  {{/velocity}}
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions