Merge branch 'MDL-61724-master' of git://github.com/mihailges/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2018-04-03 23:38:59 +02:00
3 changed files with 51 additions and 25 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ if (!$file) {
}
$zipper = get_file_packer('application/zip');
$filename = clean_filename($folder->name . "-" . date("Ymd")) . ".zip";
$filename = shorten_filename(clean_filename($folder->name . "-" . date("Ymd")) . ".zip");
$temppath = make_request_directory() . $filename;
if ($zipper->archive_to_pathname(array('/' => $file), $temppath)) {