Permalink
Browse files

Revert "MDL-31000 Respect sortorder of repositories when displaying t…

…he filepicker"

This reverts commit d811195.
  • Loading branch information...
1 parent 4d47200 commit 978a7da6fd438bc1fe66661f4519ee965106f0f6 Sam Hemelryk committed Jan 9, 2012
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[] = $meta;
+ $return->repositories[$repository->id] = $meta;
}
return $return;
}

0 comments on commit 978a7da

Please sign in to comment.