mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-61305 modinfo: Add back missing require for course
This commit is contained in:
parent
af5f446fa8
commit
ada9d0fb69
@ -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