mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 16:10:15 +01:00
Merge branch 'MDL-61305-master-fix' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
f675a8e23a
@ -653,7 +653,8 @@ class course_modinfo {
|
||||
* @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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user