Skip to content

Commit

Permalink
MDL-79253 mod_scorm: Require locallib when deleting SCORM instances
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Sep 4, 2023
1 parent 206c3a6 commit 9392905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/lib.php
Expand Up @@ -292,6 +292,7 @@ function scorm_delete_instance($id) {

$result = true;

require_once($CFG->dirroot . '/mod/scorm/locallib.php');
// Delete any dependent records.
scorm_delete_tracks($scorm->id);
if ($scoes = $DB->get_records('scorm_scoes', array('scorm' => $scorm->id))) {
Expand Down

0 comments on commit 9392905

Please sign in to comment.