forked from ZwiiCMS-Team/ZwiiCMS
Horodatage du theme
This commit is contained in:
parent
9a455fa179
commit
03a9f4dc37
@ -545,7 +545,8 @@ class theme extends common {
|
||||
*/
|
||||
public function makezip() {
|
||||
// Creation du dossier
|
||||
$zipFilename = 'theme-'.date('dmY').'-'.date('hm').'-'.rand(10,99).'.zip';
|
||||
// $zipFilename = 'theme-'.date('dmY').'-'.date('hm').'-'.rand(10,99).'.zip';
|
||||
$zipFilename = 'theme '.date('d m Y').' '.date('H i s ').'.zip';
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open('site/tmp/' . $zipFilename, ZipArchive::CREATE | ZipArchive::OVERWRITE ) === TRUE) {
|
||||
$zip->addFile('site/data/theme.json','site/data/theme.json');
|
||||
|
Loading…
Reference in New Issue
Block a user