]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for deprecated zip_files() function. Packager requires
authorstronk7 <stronk7>
Thu, 16 Oct 2008 17:50:13 +0000 (17:50 +0000)
committerstronk7 <stronk7>
Thu, 16 Oct 2008 17:50:13 +0000 (17:50 +0000)
destination file full path. Non-existing bug in Tracker.

lib/deprecatedlib.php

index 9e2d0a6b85ab2e878578966ded07b477ec674d55..f35882330f7accefc4040befea8b1148ebd15835 100644 (file)
@@ -456,7 +456,7 @@ function zip_files ($originalfiles, $destination) {
 
     $packer = get_file_packer('application/zip');
 
-    return $packer->archive_to_pathname($zipfiles, $destfilename);
+    return $packer->archive_to_pathname($zipfiles, $destpath . '/' . $destfilename);
 }
 
 /////////////////////////////////////////////////////////////