MDL-78175 course: move role renaming to participants

This commit is contained in:
Ferran Recio
2023-05-29 09:25:18 +02:00
parent 4ed782dd03
commit 0ad8fd077c
11 changed files with 157 additions and 44 deletions
-6
View File
@@ -129,12 +129,6 @@ if (!empty($course)) {
file_prepare_standard_filemanager($course, 'overviewfiles', $overviewfilesoptions, $coursecontext, 'course', 'overviewfiles', 0);
}
// Inject current aliases.
$aliases = $DB->get_records('role_names', array('contextid'=>$coursecontext->id));
foreach($aliases as $alias) {
$course->{'role_'.$alias->roleid} = $alias->name;
}
// Populate course tags.
$course->tags = core_tag_tag::get_item_tags_array('core', 'course', $course->id);