MDL-23306 fixed broken area backup and potential recursion issues in standard mod areas

This commit is contained in:
Petr Skoda 2010-07-18 09:05:13 +00:00
parent 72c4be397c
commit 8b32a7aa1f

View File

@ -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;
}