Merge branch 'MDL-79581-master' of https://github.com/andrewnicols/moodle

This commit is contained in:
Huong Nguyen
2023-10-05 11:37:09 +07:00
25 changed files with 383 additions and 176 deletions
+6 -2
View File
@@ -2986,8 +2986,12 @@ class global_navigation extends navigation_node {
// Add link for configuring communication.
if ($navoptions->communication) {
$url = new moodle_url('/communication/configure.php', ['instanceid' => $course->id,
'instancetype' => 'coursecommunication', 'component' => 'core_course']);
$url = new moodle_url('/communication/configure.php', [
'contextid' => \core\context\course::instance($course->id)->id,
'instanceid' => $course->id,
'instancetype' => 'coursecommunication',
'component' => 'core_course',
]);
$coursenode->add(get_string('communication', 'communication'), $url,
navigation_node::TYPE_SETTING, null, 'communication');
}