mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
fixed incorrect get context call
This commit is contained in:
parent
dbd9b303cc
commit
9b3f1d6c0c
@ -58,7 +58,7 @@ switch ($action) {
|
||||
$params[$key] = null;
|
||||
}
|
||||
}
|
||||
$fileinfo = $browser->get_file_info(get_context_instance_by_id($contextid, $component, $filearea, $itemid, $filepath));
|
||||
$fileinfo = $browser->get_file_info(get_context_instance_by_id($contextid), $component, $filearea, $itemid, $filepath);
|
||||
$children = $fileinfo->get_children();
|
||||
$tree = array();
|
||||
foreach ($children as $child) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user