Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 55a2b03ef1d8f6d40e7b941cafb06a40a9d0afee 1 parent 02814bf
Andrew Nicols authored August 08, 2012
2  blocks/course_overview/block_course_overview.php
@@ -64,7 +64,7 @@ public function get_content() {
64 64
             $courses_limit = $courses_limit + 1;
65 65
         }
66 66
 
67  
-        $courses = enrol_get_my_courses('id, shortname, modinfo', 'visible DESC,sortorder ASC', $courses_limit);
  67
+        $courses = enrol_get_my_courses('id, shortname, modinfo, sectioncache', 'visible DESC,sortorder ASC', $courses_limit);
68 68
         $site = get_site();
69 69
         $course = $site; //just in case we need the old global $course hack
70 70
 

0 notes on commit 55a2b03

Please sign in to comment.
Something went wrong with that request. Please try again.