From: stronk7 Date: Thu, 16 Oct 2008 18:23:19 +0000 (+0000) Subject: Fixed a problem when adding files and subdirectories (not X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f8c532ea08004d6554a42564696ca560469a5cc0;p=moodle.git Fixed a problem when adding files and subdirectories (not from Moodle Storage but from FileSystem). Related to MDL-16861 --- 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 +}