From: moodler Date: Thu, 19 Jun 2003 13:12:34 +0000 (+0000) Subject: Fixed a bug affecting the zipping of files within subdirectories, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7d064d87ff3db13540e40bf61cd1c0fb257c9c1b;p=moodle.git Fixed a bug affecting the zipping of files within subdirectories, patch from Robert Hetzel. --- diff --git a/files/index.php b/files/index.php index cc1da5cd4b..098384571e 100644 --- a/files/index.php +++ b/files/index.php @@ -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");