MDL-80911 Course: Fix missing required files

This commit is contained in:
Huong Nguyen 2024-05-20 10:05:41 +07:00
parent bcae2164ac
commit 5565f47e9b
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -767,6 +767,7 @@ function include_modulelib($modulename) {
*/
function get_moduleinfo_data($cm, $course) {
global $CFG;
require_once($CFG->libdir . '/gradelib.php');
list($cm, $context, $module, $data, $cw) = can_update_moduleinfo($cm);