mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
SCORM MDL-30146 AICC - add ability to link direct to a simple AICC url
This commit is contained in:
parent
ba0e91a281
commit
4388bd45b2
6 changed files with 79 additions and 8 deletions
|
@ -244,6 +244,7 @@ function scorm_parse($scorm, $full) {
|
|||
if (!scorm_parse_aicc($scorm)) {
|
||||
$scorm->version = 'ERROR';
|
||||
}
|
||||
$scorm->version = 'AICC';
|
||||
}
|
||||
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_EXTERNAL and $cfg_scorm->allowtypeexternal) {
|
||||
|
@ -266,7 +267,13 @@ function scorm_parse($scorm, $full) {
|
|||
$scorm->version = 'ERROR';
|
||||
}
|
||||
$newhash = sha1($scorm->reference);
|
||||
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL and $cfg_scorm->allowtypeexternalaicc) {
|
||||
require_once("$CFG->dirroot/mod/scorm/datamodels/aicclib.php");
|
||||
// AICC
|
||||
if (!scorm_parse_aicc($scorm)) {
|
||||
$scorm->version = 'ERROR';
|
||||
}
|
||||
$scorm->version = 'AICC';
|
||||
} else {
|
||||
// sorry, disabled type
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue