]> git.mjollnir.org Git - moodle.git/commitdiff
Firex MDL-8600. Added code to get the scoid which was missed
authorcsantossaenz <csantossaenz>
Thu, 8 Mar 2007 12:41:43 +0000 (12:41 +0000)
committercsantossaenz <csantossaenz>
Thu, 8 Mar 2007 12:41:43 +0000 (12:41 +0000)
mod/scorm/player.php

index d3918ab864db0bdcd5bacce6c54c6893ed4229a4..0756e8d3dffc3d677bb4d846b6fc68da439c2a8b 100755 (executable)
     $mode = optional_param('mode', 'normal', PARAM_ALPHA); // navigation mode
     $currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
     $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
+       
+       $scoid=$_GET['scoid'];
+       
+       
+       //$scoid=$_POST['scoid'];
+       //echo 'SCOID'.$scoid;
+       if ($sco1 = get_record("scorm_scoes", "id", $scoid,"parent",'/')) {
+           $scoid++;
+    }
 
     if (!empty($id)) {
         if (! $cm = get_coursemodule_from_id('scorm', $id)) {