From fcdd94642284c9581c06f0e20616702168441a65 Mon Sep 17 00:00:00 2001 From: csantossaenz Date: Wed, 24 Jan 2007 07:27:40 +0000 Subject: [PATCH] Added code to the scorm_view_display function to update the SCORM activities which have to be updated every time they are used --- mod/scorm/locallib.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 987fc3f18b..ba71c77f86 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -1,6 +1,7 @@ external=='2'){ + $scorm->instance=$scorm->id; + scorm_update_instance($scorm); + } $organization = optional_param('organization', '', PARAM_INT); print_simple_box_start('center',$boxwidth); @@ -667,8 +671,8 @@ function scorm_validate($data) { $validation = new stdClass(); $fstat=array("mtime"=>0); - - if (!empty($courseid) && !empty($reference)) { + + if (!empty($courseid) && !empty($reference)) { $validation->launch = 0; $validation->errors = array(); $referencefield = $reference; -- 2.39.5