Permalink
Browse files

MDL-33590 Correctly determine that file is an archive to enable unzip…

… in filemanager
  • Loading branch information...
1 parent f8dfdb5 commit ff32444a7cb37a4c5c04be0e0dcafec6909be44b @marinaglancy marinaglancy committed Jun 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
View
@@ -613,7 +613,7 @@ function file_get_drafarea_files($draftitemid, $filepath = '/') {
} else {
// do NOT use file browser here!
$item->mimetype = get_mimetype_description($file);
- if (file_mimetype_in_typegroup($item->mimetype, 'archive')) {
+ if (file_extension_in_typegroup($file->get_filename(), 'archive')) {
$item->type = 'zip';
} else {
$item->type = 'file';

0 comments on commit ff32444

Please sign in to comment.