]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a bug affecting the zipping of files within subdirectories,
authormoodler <moodler>
Thu, 19 Jun 2003 13:12:34 +0000 (13:12 +0000)
committermoodler <moodler>
Thu, 19 Jun 2003 13:12:34 +0000 (13:12 +0000)
patch from Robert Hetzel.

files/index.php

index cc1da5cd4b69ff72f6230922ce9c851f072c87a5..098384571e117a98c5141c50eb4cf9589991d946 100644 (file)
                 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");