Skip to content
Snippets Groups Projects
Commit a9f3c780 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fix to display in-course course settings also within module context.

parent 5b061953
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,8 @@ if (isset($catchctrlarrowdown) && $catchctrlarrowdown == true) {
$node = false;
// If the setting 'showsettingsincourse' is enabled.
if (get_config('theme_boost_campus', 'showsettingsincourse') == 'yes') {
// Only search for the courseadmin node if we are within a course context.
if ($PAGE->context->contextlevel == CONTEXT_COURSE) {
// Only search for the courseadmin node if we are within a course or a module context.
if ($PAGE->context->contextlevel == CONTEXT_COURSE || $PAGE->context->contextlevel == CONTEXT_MODULE) {
// Get the course context menu.
$node = $PAGE->settingsnav->find('courseadmin', navigation_node::TYPE_COURSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment