MDL-34549 libraries: Changing strictness of context::instance_by_id() when required
This commit is contained in:
@@ -283,7 +283,7 @@ class file_info_context_module extends file_info {
|
||||
*/
|
||||
public function get_parent() {
|
||||
$pcid = get_parent_contextid($this->context);
|
||||
$parent = context::instance_by_id($pcid);
|
||||
$parent = context::instance_by_id($pcid, IGNORE_MISSING);
|
||||
return $this->browser->get_file_info($parent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user