mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'master_MDL-37484' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
c2bee5e0d1
2 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,7 @@ function scorm_add_instance($scorm, $mform=null) {
|
|||
$record->reference = $scorm->packageurl;
|
||||
} else if ($record->scormtype === SCORM_TYPE_AICCURL) {
|
||||
$record->reference = $scorm->packageurl;
|
||||
$record->hidetoc = SCORM_TOC_DISABLED; // TOC is useless for direct AICCURL so disable it.
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -208,6 +209,7 @@ function scorm_update_instance($scorm, $mform=null) {
|
|||
$scorm->reference = $scorm->packageurl;
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL) {
|
||||
$scorm->reference = $scorm->packageurl;
|
||||
$scorm->hidetoc = SCORM_TOC_DISABLED; // TOC is useless for direct AICCURL so disable it.
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -160,6 +160,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
|||
$mform->addHelpButton('hidetoc', 'hidetoc', 'scorm');
|
||||
$mform->setDefault('hidetoc', $cfg_scorm->hidetoc);
|
||||
$mform->setAdvanced('hidetoc', $cfg_scorm->hidetoc_adv);
|
||||
$mform->disabledIf('hidetoc', 'scormtype', 'eq', SCORM_TYPE_AICCURL);
|
||||
|
||||
// Hide Navigation panel.
|
||||
$mform->addElement('selectyesno', 'hidenav', get_string('hidenav', 'scorm'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue