"MDL-13766, don't use hard-coded filename"

This commit is contained in:
Dongsheng Cai
2010-06-09 06:44:31 +00:00
parent 71e0fa1a25
commit b2c8e7a733
+1 -1
View File
@@ -267,7 +267,7 @@ case 'downloaddir':
$filename = trim($draftpath, '/').'.zip';
} else {
$parent_path = '/';
$filename = 'Files.zip';
$filename = get_string('files').'.zip';
}
if ($newfile = $zipper->archive_to_storage(array($file), $user_context->id, 'user_draft', $itemid, $parent_path, $filename, $USER->id)) {