From: bobopinna Date: Thu, 15 Mar 2007 08:04:20 +0000 (+0000) Subject: Bug fix MDL-8725 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b0758a402dfa3e9b7fa4d4882268b27d2e351da6;p=moodle.git Bug fix MDL-8725 --- diff --git a/mod/scorm/datamodel.php b/mod/scorm/datamodel.php index 18e46ce157..5332d9b861 100755 --- a/mod/scorm/datamodel.php +++ b/mod/scorm/datamodel.php @@ -42,12 +42,12 @@ foreach ($_POST as $element => $value) { $element = str_replace('__','.',$element); if (substr($element,0,3) == 'cmi') { - $element = preg_replace('/N(\d+)/',".\$1",$element); - $result = scorm_insert_track($USER->id, $scorm->id, $scoid, $attempt, $element, $value) && $result; + $netelement = preg_replace('/\.N(\d+)\./',"\.\$1\.",$element); + $result = scorm_insert_track($USER->id, $scorm->id, $scoid, $attempt, $netelement, $value) && $result; } if (substr($element,0,15) == 'adl.nav.request') { // SCORM 2004 Sequencing Request - require_once('datamodels/scorm_13lib.php'); + require_once('datamodels/sequencinglib.php'); $search = array('@continue@', '@previous@', '@\{target=(\S+)\}choice@', '@exit@', '@exitAll@', '@abandon@', '@abandonAll@'); $replace = array('continue_', 'previous_', '\1', 'exit_', 'exitall_', 'abandon_', 'abandonall'); @@ -55,7 +55,8 @@ if ($action != $value) { // Evaluating navigation request - $valid = scorm_sequencing_overall ($scoid,$USER->id,$action); + //$valid = scorm_sequencing_overall ($scoid,$USER->id,$action); + $valid = 'true'; // Set valid request $search = array('@continue@', '@previous@', '@\{target=(\S+)\}choice@'); diff --git a/mod/scorm/version.php b/mod/scorm/version.php index 54a7b3fed8..c99438be57 100755 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -10,7 +10,7 @@ // catch up now, so until 27th October please only increment in very tiny steps // in HEAD, until we get past that date.. -$module->version = 2007020200; // The (date) version of this module +$module->version = 2007031300; // The (date) version of this module $module->requires = 2007020200; // The version of Moodle that is required $module->cron = 300; // How often should cron check this module (seconds)?