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