mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-57051 course: Do not return directories in check_module_updates
This commit is contained in:
parent
b4d6669dd0
commit
6706c1cb12
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user