From f8c532ea08004d6554a42564696ca560469a5cc0 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 16 Oct 2008 18:23:19 +0000 Subject: [PATCH] Fixed a problem when adding files and subdirectories (not from Moodle Storage but from FileSystem). Related to MDL-16861 --- lib/packer/zip_packer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/packer/zip_packer.php b/lib/packer/zip_packer.php index 6458cd7654..fa8d6ac45e 100644 --- a/lib/packer/zip_packer.php +++ b/lib/packer/zip_packer.php @@ -127,7 +127,7 @@ class zip_packer extends file_packer { if ($file->isDot()) { continue; } - $newpath = $archivepath.$file->getFilename(); + $newpath = $archivepath.'/'.$file->getFilename(); $this->archive_pathname($ziparch, $newpath, $file->getPathname()); } unset($files); //release file handles @@ -390,4 +390,4 @@ class zip_packer extends file_packer { return $list; } -} \ No newline at end of file +} -- 2.39.5