forked from ZwiiCMS-Team/ZwiiCMS
10.1 warning création dossier existant
This commit is contained in:
parent
24f8267ac8
commit
50b4efd6bd
@ -659,7 +659,9 @@ class theme extends common {
|
||||
// Make zip
|
||||
$zipFilename = $this->makezip($this->getUrl(2));
|
||||
// Téléchargement du ZIP
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user