]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16861 portfolio/export make sure to zip up files including the path info
authormjollnir_ <mjollnir_>
Tue, 11 Nov 2008 18:52:10 +0000 (18:52 +0000)
committermjollnir_ <mjollnir_>
Tue, 11 Nov 2008 18:52:10 +0000 (18:52 +0000)
lib/portfolio/exporter.php

index 6f0c017580791fddec0b07b522d6ec53423bf6c3..3938a8e25ec029d872f6bd1a50e25b7858137241 100644 (file)
@@ -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;
     }