Skip to content

Commit

Permalink
SCORM MDL-24273 fix typo in SCORM 2004 code
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Nov 16, 2010
1 parent b0f5d07 commit 522aafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/scorm/datamodels/sequencinglib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1332,11 +1332,11 @@ function scorm_seq_flow_activity_traversal ($activity, $userid, $direction, $chi

if ($prevdirection = 'backward' && $seq->traversaldir == 'backward'){
$seq = scorm_seq_flow_tree_traversal ($activity,$direction,false,null,$seq,$userid);
$seq = scorm_seq_flow_activity($seq->identifiedactivity, $userid, $direction, $childrenflag, $prevdirection, $seq,$userid);
$seq = scorm_seq_flow_activity_traversal($seq->identifiedactivity, $userid, $direction, $childrenflag, $prevdirection, $seq,$userid);
}
else{
$seq = scorm_seq_flow_tree_traversal ($activity,$direction,false,null,$seq,$userid);
$seq = scorm_seq_flow_activity($seq->identifiedactivity, $userid, $direction, $childrenflag, $prevdirection, $seq,$userid);
$seq = scorm_seq_flow_activity_traversal($seq->identifiedactivity, $userid, $direction, $childrenflag, $prevdirection, $seq,$userid);
}
return $seq;
}
Expand Down Expand Up @@ -1365,10 +1365,10 @@ function scorm_seq_flow_activity_traversal ($activity, $userid, $direction, $chi

else{
if($direction == 'backward' && $seq->traversaldir == 'forward'){
$seq = scorm_seq_flow_activity($seq->identifiedactivity, $userid, 'forward', $childrenflag, 'backward', $seq,$userid);
$seq = scorm_seq_flow_activity_traversal($seq->identifiedactivity, $userid, 'forward', $childrenflag, 'backward', $seq,$userid);
}
else{
scorm_seq_flow_activity($seq->identifiedactivity, $userid, $direction, $childrenflag, null, $seq,$userid);
scorm_seq_flow_activity_traversal($seq->identifiedactivity, $userid, $direction, $childrenflag, null, $seq,$userid);
}
return $seq;
}
Expand Down

0 comments on commit 522aafc

Please sign in to comment.