mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 11:23:06 +02:00
MDL-23306 fixed broken area backup and potential recursion issues in standard mod areas
This commit is contained in:
parent
72c4be397c
commit
8b32a7aa1f
@ -111,10 +111,6 @@ class file_info_context_module extends file_info {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isset($itemid)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$fs = get_file_storage();
|
||||
|
||||
$filepath = is_null($filepath) ? '/' : $filepath;
|
||||
@ -139,10 +135,6 @@ class file_info_context_module extends file_info {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (empty($itemid)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$fs = get_file_storage();
|
||||
|
||||
$filepath = is_null($filepath) ? '/' : $filepath;
|
||||
@ -206,6 +198,7 @@ class file_info_context_module extends file_info {
|
||||
$children[] = $child;
|
||||
}
|
||||
}
|
||||
|
||||
return $children;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user