From: mjollnir_ Date: Tue, 11 Nov 2008 18:52:10 +0000 (+0000) Subject: MDL-16861 portfolio/export make sure to zip up files including the path info X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9c2628b58d25c10d495ff1dd668a628646cd238;p=moodle.git MDL-16861 portfolio/export make sure to zip up files including the path info --- diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index 6f0c017580..3938a8e25e 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -755,7 +755,7 @@ class portfolio_exporter { } $returnfiles = array(); foreach ($files as $f) { - $returnfiles[$f->get_filename()] = $f; + $returnfiles[$f->get_filepath() . '/' . $f->get_filename()] = $f; } return $returnfiles; }