MDL-80715 core_courseformat: delegate section and cm rename
This commit is contained in:
committed by
ferranrecio
parent
c74a5439f6
commit
fbbb86a2a6
@@ -104,7 +104,12 @@ $editoroptions = array(
|
||||
);
|
||||
|
||||
$courseformat = course_get_format($course);
|
||||
$defaultsectionname = $courseformat->get_default_section_name($section);
|
||||
|
||||
if ($sectioninfo->is_delegated()) {
|
||||
$defaultsectionname = $sectioninfo->name;
|
||||
} else {
|
||||
$defaultsectionname = $courseformat->get_default_section_name($section);
|
||||
}
|
||||
|
||||
$customdata = [
|
||||
'cs' => $sectioninfo,
|
||||
|
||||
Reference in New Issue
Block a user