[9.2.01] erreur de sauvegarde du thème

This commit is contained in:
fredtempez 2019-07-15 10:32:56 +02:00
parent 515a90477f
commit 928a77ec7c

View File

@ -596,8 +596,8 @@ class theme extends common {
$zip = new ZipArchive();
if ($zip->open(self::TEMP_DIR . $zipFilename, ZipArchive::CREATE | ZipArchive::OVERWRITE ) === TRUE) {
$zip->addFile(self::DATA_DIR.'theme.json',self::DATA_DIR.'theme.json');
$zip->addFile(self::DATA_DIR.'theme.json',self::DATA_DIR.'theme.css');
$zip->addFile(self::DATA_DIR.'theme.json',self::DATA_DIR.'custom.css');
$zip->addFile(self::DATA_DIR.'theme.css',self::DATA_DIR.'theme.css');
$zip->addFile(self::DATA_DIR.'custom.css',self::DATA_DIR.'custom.css');
if ($this->getData(['theme','body','image']) !== '' ) {
$zip->addFile(self::FILE_DIR.'source/'.$this->getData(['theme','body','image']),
self::FILE_DIR.'source/'.$this->getData(['theme','body','image'])