MDL-34507 Filepicker: Repositories with specific filetypes are displayed when expected

This commit is contained in:
Frederic Massart
2012-07-27 10:01:14 +08:00
parent dd9274c4fc
commit 0a9f98bf4e
+3
View File
@@ -815,6 +815,9 @@ abstract class repository {
$ft = new filetype_parser();
if (isset($args['accepted_types'])) {
$accepted_types = $args['accepted_types'];
if (is_array($accepted_types) && in_array('*', $accepted_types)) {
$accepted_types = '*';
}
} else {
$accepted_types = '*';
}