mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 17:33:18 +02:00
MDL-80004 scorm: add missing require locallib during course reset.
This commit is contained in:
parent
e4d1369475
commit
2f6685dfc7
@ -820,7 +820,8 @@ function scorm_reset_gradebook($courseid, $type='') {
|
||||
* @return array status array
|
||||
*/
|
||||
function scorm_reset_userdata($data) {
|
||||
global $DB;
|
||||
global $DB, $CFG;
|
||||
require_once($CFG->dirroot.'/mod/scorm/locallib.php');
|
||||
|
||||
$componentstr = get_string('modulenameplural', 'scorm');
|
||||
$status = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user