diff --git a/mod/scorm/playscorm.php b/mod/scorm/playscorm.php index 4a4b83f06f7..40928c2060a 100755 --- a/mod/scorm/playscorm.php +++ b/mod/scorm/playscorm.php @@ -87,12 +87,13 @@ } } add_to_log($course->id, 'scorm', 'view', "playscorm.php?id=$cm->id&scoid=$sco->id", "$scorm->id"); - if ($scorm->popup == 0) { - $scoidstring = '&scoid='.$sco->id; - $modestring = '&mode='.$mode; - } else { - $scoidstring = '&scoid='.$sco->id; - $modestring = '&mode='.$mode; + $scoidstr = '&scoid='.$sco->id; + $scoidpop = '&scoid='.$sco->id; + $modestr = '&mode='.$mode; + $modepop = '&mode='.$mode; + if (!$result->incomplete) { + $attemptstr = '&attempt=new'; + $attemptpop = '&attempt=new'; } $SESSION->scorm_scoid = $sco->id; @@ -112,7 +113,7 @@ '', '', true, $exitbutton.update_module_button($cm->id, $course->id, $strscorm), '', false, $bodyscript); ?> - + @@ -161,14 +162,14 @@ class="scoframe" width="width<=100 ? $scorm->width.'%' : $scorm->width ?>" height="height<=100 ? $scorm->height.'%' : $scorm->height ?>" - src="loadSCO.php?id=id.$scoidstring.$modestring ?>"> + src="loadSCO.php?id=id.$scoidstr.$modestr.$attemptstr ?>">