MDL-10358 Scorm package not updating correctly - calling function in lib not included.
This commit is contained in:
@@ -509,6 +509,8 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
|
||||
global $CFG;
|
||||
|
||||
if ($scorm->updatefreq == UPDATE_EVERYTIME){
|
||||
require_once($CFG->dirroot.'/mod/scorm/lib.php');
|
||||
|
||||
$scorm->instance = $scorm->id;
|
||||
scorm_update_instance($scorm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user