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