Browse Source

10.1 warning création dossier existant

pull/9/head
Fred Tempez 1 year ago
parent
commit
50b4efd6bd
  1. 4
      core/module/theme/theme.php

4
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);

Loading…
Cancel
Save