Fix We must include version into filename
This commit is contained in:
parent
2a20fc3968
commit
c90ab62989
@ -1081,7 +1081,7 @@ class Website extends CommonObject
|
||||
// Build zip file
|
||||
$filedir = $conf->website->dir_temp.'/'.$website->ref.'/.';
|
||||
$fileglob = $conf->website->dir_temp.'/'.$website->ref.'/website_'.$website->ref.'-*.zip';
|
||||
$filename = $conf->website->dir_temp.'/'.$website->ref.'/website_'.$website->ref.'-'.dol_print_date(dol_now(), 'dayhourlog').'.zip';
|
||||
$filename = $conf->website->dir_temp.'/'.$website->ref.'/website_'.$website->ref.'-'.dol_print_date(dol_now(), 'dayhourlog').'-V'.((float) DOL_VERSION).'.zip';
|
||||
|
||||
dol_delete_file($fileglob, 0);
|
||||
$result = dol_compress_file($filedir, $filename, 'zip');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user