forked from ZwiiCMS-Team/ZwiiCMS
[9.0.08] backup theme.json when update
This commit is contained in:
parent
60b8eecb3e
commit
9d16bb869c
@ -98,6 +98,7 @@ class install extends common {
|
||||
$success = true;
|
||||
// Copie du fichier de données
|
||||
copy('site/data/core.json', 'site/backup/' . date('Y-m-d', time()) . '-update.json');
|
||||
copy('site/data/theme.json', 'site/backup/' . date('Y-m-d', time()) . '-update.json');
|
||||
// Nettoyage des fichiers temporaires
|
||||
if(file_exists('site/tmp/update.tar.gz')) {
|
||||
$success = unlink('site/tmp/update.tar.gz');
|
||||
|
Loading…
Reference in New Issue
Block a user