Skip to content
Snippets Groups Projects
Commit cd7241e7 authored by Elke Kreim's avatar Elke Kreim
Browse files

Change parameter type from int to constant variable

parent b9d0bc1d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ function local_sembasednav_extend_navigation(global_navigation $navigation)
$PAGE->requires->js_call_amd('local_sembasednav/sembasednav', 'closeAllChildNodes', [$myCoursesNode->key]);
// type() needed to get an array for usort - navigation_node_collection by itself is not sortable
$courses = $myCoursesNode->children->type(20);
$courses = $myCoursesNode->children->type(navigation_node::TYPE_COURSE);
// Nodes that are excluded from max semester count - will always be shown
$noSemesterAssignedName = get_config('sembasednav', 'setting_nosemestername');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment