Merge branch 'MDL-79581-master' of https://github.com/andrewnicols/moodle
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user