Permalink
Browse files

Fixed bug MDL-8725

Just a typo in regular expression
  • Loading branch information...
1 parent 0b17d07 commit 54c5ce36db4bb1d18a67aa02ff2fa42843139856 bobopinna committed Mar 13, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/scorm/datamodels/scorm_13.js.php
View
6 mod/scorm/datamodels/scorm_13.js.php
@@ -165,7 +165,7 @@ function SCORMapi1_3() {
foreach($userdata as $element => $value){
if (substr($element,0,14) == 'cmi.objectives') {
preg_match('/.(\d+)./',$element,$matches);
- $element = preg_replace('/.(\d+)./',".N\$1.",$element);
+ $element = preg_replace('/\.(\d+)\./',"\.N\$1\.",$element);
if ($matches[1] == $count) {
$count++;
$end = strpos($element,$matches[1])+strlen($matches[1]);
@@ -235,8 +235,8 @@ function Terminate (param) {
Initialized = false;
Terminated = true;
result = StoreData(cmi,true);
- if (nav.event != '') {
- if (nav.event == 'continue') {
+ if (adl.nav.request != '') {
+ if (adl.nav.request == 'continue') {
setTimeout('top.nextSCO();',500);
} else {
setTimeout('top.prevSCO();',500);

0 comments on commit 54c5ce3

Please sign in to comment.