This commit is contained in:
Fred Tempez 2019-12-16 17:13:05 +01:00
commit b3f58afb33

View File

@ -219,9 +219,10 @@ class config extends common {
foreach ($files as $name => $file) {
if (!$file->isDir()) {
$filePath = $file->getRealPath();
$relativePath = substr($filePath, strlen(realpath($directory)) + 1);
$relativePath = substr($filePath, strlen(realpath('site/')) + 1);
$zip->addFile($filePath, $relativePath);
}
}
$zip->close();
// Téléchargement du ZIP