Skip to content

Commit

Permalink
Merge branch 'MDL-61305-33-fix' of https://github.com/andrewnicols/mo…
Browse files Browse the repository at this point in the history
…odle into MOODLE_33_STABLE
  • Loading branch information
andrewnicols committed Feb 12, 2018
2 parents 6dc3fc7 + 9a36044 commit ea61136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modinfolib.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ public static function build_course_cache($course) {
* @return stdClass Course object that has been stored in MUC
*/
protected static function inner_build_course_cache($course, \core\lock\lock $lock) {
global $DB;
global $DB, $CFG;
require_once("{$CFG->dirroot}/course/lib.php");

// Ensure object has all necessary fields.
foreach (self::$cachedfields as $key) {
Expand Down

0 comments on commit ea61136

Please sign in to comment.