MDL-57051 course: Do not return directories in check_module_updates

This commit is contained in:
Juan Leyva 2016-11-19 16:54:31 +00:00
parent b4d6669dd0
commit 6706c1cb12

View File

@ -3934,7 +3934,7 @@ function course_check_module_updates_since($cm, $from, $fileareas = array(), $fi
}
if (!empty($fileareas) and (empty($filter) or in_array('fileareas', $filter))) {
$fs = get_file_storage();
$files = $fs->get_area_files($context->id, $component, $fileareas, false, "filearea, timemodified DESC", true, $from);
$files = $fs->get_area_files($context->id, $component, $fileareas, false, "filearea, timemodified DESC", false, $from);
foreach ($fileareas as $filearea) {
$updates->{$filearea . 'files'} = (object) array('updated' => false);
}