Merge branch 'MDL-74276-master-linkfarm' of https://github.com/peterRd/moodle

This commit is contained in:
Jake Dallimore
2022-04-04 15:59:19 +08:00
31 changed files with 128 additions and 61 deletions
+8
View File
@@ -4665,6 +4665,10 @@ class settings_navigation extends navigation_node {
foreach ($reports as $reportfunction) {
$reportfunction($reportnav, $course, $coursecontext);
}
if (!$reportnav->has_children()) {
$reportnav->remove();
}
}
// Check if we can view the gradebook's setup page.
@@ -5633,6 +5637,10 @@ class settings_navigation extends navigation_node {
foreach ($reports as $reportfunction) {
$reportfunction($frontpagenav, $course, $coursecontext);
}
if (!$frontpagenav->has_children()) {
$frontpagenav->remove();
}
}
// Backup this course