Fixed a bug affecting the zipping of files within subdirectories,

patch from Robert Hetzel.
This commit is contained in:
moodler
2003-06-19 13:12:34 +00:00
parent 9dc9273aa9
commit 7d064d87ff
+1 -1
View File
@@ -331,7 +331,7 @@
if (empty($CFG->zip)) { // Use built-in php-based zip function
$files = array();
foreach ($USER->filelist as $file) {
$files[] = "$basedir/$wdir$file";
$files[] = "$basedir/$file";
}
include_once('../lib/pclzip/pclzip.lib.php');
$archive = new PclZip("$basedir/$wdir/$name");