]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a problem when adding files and subdirectories (not
authorstronk7 <stronk7>
Thu, 16 Oct 2008 18:23:19 +0000 (18:23 +0000)
committerstronk7 <stronk7>
Thu, 16 Oct 2008 18:23:19 +0000 (18:23 +0000)
from Moodle Storage but from FileSystem). Related to MDL-16861

lib/packer/zip_packer.php

index 6458cd7654ec6fb360edf81faa410b1211c077d2..fa8d6ac45ea59db80f4d5dbc4fcd5881e7b61739 100644 (file)
@@ -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
+}