Modif var backup

This commit is contained in:
Fred Tempez 2019-12-16 17:13:44 +01:00
parent b3f58afb33
commit 432ded6bf6
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class config extends common {
foreach ($files as $name => $file) {
if (!$file->isDir()) {
$filePath = $file->getRealPath();
$relativePath = substr($filePath, strlen(realpath('site/')) + 1);
$relativePath = substr($filePath, strlen(realpath($directory)) + 1);
$zip->addFile($filePath, $relativePath);
}