SCORM MDL-22168 fix accidental revert - set start time of SCO correctly
authorDan Marsden <Dan@digitalclay.co.nz>
Thu, 24 Jun 2010 00:48:48 +0000 (00:48 +0000)
committerDan Marsden <Dan@digitalclay.co.nz>
Thu, 24 Jun 2010 00:48:48 +0000 (00:48 +0000)
mod/scorm/loaddatamodel.php

index 6e9173a..73ebd04 100644 (file)
@@ -86,6 +86,8 @@
     } else {
         include($CFG->dirroot.'/mod/scorm/datamodels/scorm_12.js.php');
     }
+    // set the start time of this SCO
+    scorm_insert_track($USER->id,$scorm->id,$scoid,$attempt,'x.start.time',time());
 ?>
 
 var errorCode = "0";