Added support to AICC lauch

This commit is contained in:
bobopinna 2005-04-18 08:37:45 +00:00
parent 88f75516f6
commit 3332df2142
2 changed files with 8 additions and 3 deletions

View File

@ -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;
}

View File

@ -71,7 +71,8 @@
// 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 {
@ -79,7 +80,11 @@
}
}
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;