From 50b4efd6bd9e7c19b350a681665bb671f55159e1 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 22 May 2020 16:13:38 +0200 Subject: [PATCH] =?UTF-8?q?10.1=20warning=20cr=C3=A9ation=20dossier=20exis?= =?UTF-8?q?tant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 2bf4a420..20e28b83 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -659,7 +659,9 @@ class theme extends common { // Make zip $zipFilename = $this->makezip($this->getUrl(2)); // Téléchargement du ZIP - mkdir(self::FILE_DIR.'source/theme'); + if (!is_dir(self::FILE_DIR.'source/theme')) { + mkdir(self::FILE_DIR.'source/theme'); + } copy (self::TEMP_DIR . $zipFilename , self::FILE_DIR.'source/theme/' . $zipFilename); // Nettoyage du dossier unlink (self::TEMP_DIR . $zipFilename);