mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
02814bfc18
commit
55a2b03ef1
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class block_course_overview extends block_base {
|
||||||
$courses_limit = $courses_limit + 1;
|
$courses_limit = $courses_limit + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$courses = enrol_get_my_courses('id, shortname, modinfo', 'visible DESC,sortorder ASC', $courses_limit);
|
$courses = enrol_get_my_courses('id, shortname, modinfo, sectioncache', 'visible DESC,sortorder ASC', $courses_limit);
|
||||||
$site = get_site();
|
$site = get_site();
|
||||||
$course = $site; //just in case we need the old global $course hack
|
$course = $site; //just in case we need the old global $course hack
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue