MDL-10358 Scorm package not updating correctly - calling function in lib not included. merged from HEAD

This commit is contained in:
danmarsden
2008-03-04 22:26:30 +00:00
parent 754104acb4
commit 4b02f546ee
+2
View File
@@ -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);
}