"MDL-13766, don't use hard-coded filename"
authorDongsheng Cai <unoter@gmail.com>
Wed, 9 Jun 2010 06:44:31 +0000 (06:44 +0000)
committerDongsheng Cai <unoter@gmail.com>
Wed, 9 Jun 2010 06:44:31 +0000 (06:44 +0000)
repository/filepicker.php

index 5a203aa..70a2a25 100755 (executable)
@@ -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)) {