Skip to content

Commit

Permalink
Added support to AICC lauch
Browse files Browse the repository at this point in the history
  • Loading branch information
bobopinna committed Apr 18, 2005
1 parent 88f7551 commit 3332df2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Expand Up @@ -922,7 +922,7 @@ function scorm_display_structure($scorm,$liststyle,$currentorg='',$scoid='',$mod
$nextid = 0;
}
}
if ($nextid == 0) {
if (($nextid == 0) && (count($scoes) > 1)) {
$previd = $sco->id;
}

Expand Down
9 changes: 7 additions & 2 deletions mod/scorm/loadSCO.php
Expand Up @@ -71,15 +71,20 @@
// Forge SCO URL
//
$connector = '';
if (!empty($sco->parameters)) {
$version = substr($scorm->version,0,4);
if (!empty($sco->parameters) || ($version == 'AICC')) {
if (stripos($sco->launch,'?') !== false) {
$connector = '&';
} else {
$connector = '?';
}
}
if (scorm_external_link($sco->launch)) {
$result = $sco->launch;
if ($version == 'AICC') {
$result = $sco->launch.$connector.'aicc_sid='.$CFG->sesskey.'&aicc_url='.$CFG->wwwroot.'/mod/scorm/aicc.php&'.$sco->parameters;
} else {
$result = $sco->launch.$connector.$sco->parameters;
}
} else {
if ($CFG->slasharguments) {
$result = $CFG->wwwroot.'/file.php/'.$scorm->course.'/moddata/scorm/'.$scorm->id.'/'.$sco->launch.$connector.$sco->parameters;
Expand Down

0 comments on commit 3332df2

Please sign in to comment.