mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-44247-26' of git://github.com/FMCorz/moodle into MOODLE_26_STABLE
This commit is contained in:
commit
ede0d15765
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
|||
if (!$file->is_external_file()) {
|
||||
$errors['packagefile'] = get_string('aliasonly', 'mod_scorm');
|
||||
} else {
|
||||
$repository = repository::get_repository_by_id($file->get_repository_id(), CONTEXT_SYSTEM);
|
||||
$repository = repository::get_repository_by_id($file->get_repository_id(), context_system::instance());
|
||||
if (!$repository->supports_relative_file()) {
|
||||
$errors['packagefile'] = get_string('repositorynotsupported', 'mod_scorm');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue