From cd7241e7ede1f78eb81f9ab33930524ef35cbf8b Mon Sep 17 00:00:00 2001 From: Elke Kreim <elke.kreim@hs-hannover.de> Date: Tue, 26 Oct 2021 17:11:10 +0200 Subject: [PATCH] Change parameter type from int to constant variable --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index abfe063..19915cc 100644 --- a/lib.php +++ b/lib.php @@ -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'); -- GitLab