Permalink
Browse files

MDL-31000 Respect sortorder of repositories when displaying the filep…

…icker
  • Loading branch information...
andrewnicols authored and Sam Hemelryk committed Jan 3, 2012
1 parent 6d768d0 commit d8111951abe194179cbdd55eec162fe3feb99356
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -2119,7 +2119,7 @@ function initialise_filepicker($args) {
$return->return_types = $args->return_types;
foreach ($repositories as $repository) {
$meta = $repository->get_meta();
- $return->repositories[$repository->id] = $meta;
+ $return->repositories[] = $meta;
}
return $return;
}

0 comments on commit d811195

Please sign in to comment.