forked from ZwiiCMS-Team/ZwiiCMS
Merge branch 'master' of https://github.com/fredtempez/ZwiiCMS
This commit is contained in:
commit
b3f58afb33
@ -219,9 +219,10 @@ class config extends common {
|
|||||||
foreach ($files as $name => $file) {
|
foreach ($files as $name => $file) {
|
||||||
if (!$file->isDir()) {
|
if (!$file->isDir()) {
|
||||||
$filePath = $file->getRealPath();
|
$filePath = $file->getRealPath();
|
||||||
$relativePath = substr($filePath, strlen(realpath($directory)) + 1);
|
$relativePath = substr($filePath, strlen(realpath('site/')) + 1);
|
||||||
$zip->addFile($filePath, $relativePath);
|
$zip->addFile($filePath, $relativePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$zip->close();
|
$zip->close();
|
||||||
// Téléchargement du ZIP
|
// Téléchargement du ZIP
|
||||||
|
Loading…
Reference in New Issue
Block a user