Permalink
Browse files

MDL-34507 Filepicker: Repositories with specific filetypes are displa…

…yed when expected
  • Loading branch information...
1 parent dd9274c commit 0a9f98bf4e2a5907dd76004b7239171032b368fd @FMCorz FMCorz committed Jul 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 repository/lib.php
View
@@ -815,6 +815,9 @@ public static function get_instances($args = array()) {
$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 = '*';
}

0 comments on commit 0a9f98b

Please sign in to comment.