MDL-31000 Respect sortorder of repositories when displaying the filepicker

This commit is contained in:
Andrew Robert Nicols 2012-01-03 15:58:58 +00:00
parent 2117dcb591
commit ef72c7942e

View File

@ -2146,7 +2146,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;
}