From: stronk7 Date: Thu, 16 Oct 2008 17:50:13 +0000 (+0000) Subject: Fix for deprecated zip_files() function. Packager requires X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3ed22f1a25d40f475fbb5acdc4a8ceef00a4a05c;p=moodle.git Fix for deprecated zip_files() function. Packager requires destination file full path. Non-existing bug in Tracker. --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 9e2d0a6b85..f35882330f 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -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); } /////////////////////////////////////////////////////////////