mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Added support to AICC lauch
This commit is contained in:
parent
88f75516f6
commit
3332df2142
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user