mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-34783 Retrieve the sectioncache parameter for enrolled courses in the course_overview block
The sectioncache field is used by course_modinfo and without it, the modinfo cache is repeatedly reset.
This commit is contained in:
parent
470d47f512
commit
49ed1b0d0b
@ -125,7 +125,7 @@ function block_course_overview_get_sorted_courses() {
|
||||
|
||||
$limit = block_course_overview_get_max_user_courses();
|
||||
|
||||
$courses = enrol_get_my_courses('id, shortname, fullname, modinfo');
|
||||
$courses = enrol_get_my_courses('id, shortname, fullname, modinfo, sectioncache');
|
||||
$site = get_site();
|
||||
|
||||
if (array_key_exists($site->id,$courses)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user