Merge branch 'MDL-40709-master' of git://github.com/danpoltawski/moodle

This commit is contained in:
Damyon Wiese 2013-08-20 16:10:49 +08:00
commit 93e2c2a567

View File

@ -96,7 +96,11 @@ class repository_skydrive extends repository {
$ret['dynload'] = true;
$ret['nosearch'] = true;
$ret['manage'] = 'https://skydrive.live.com/';
$ret['list'] = $this->skydrive->get_file_list($path);
$fileslist = $this->skydrive->get_file_list($path);
// Filter list for accepted types. Hopefully this will be done by core some day.
$fileslist = array_filter($fileslist, array($this, 'filter'));
$ret['list'] = $fileslist;
// Generate path bar, always start with the plugin name.
$ret['path'] = array();