From 432ded6bf6254256fe75c4f8b499904d19a3b81a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 16 Dec 2019 17:13:44 +0100 Subject: [PATCH] Modif var backup --- core/module/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index 15265645..34eb308d 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -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); }