MDL-44247 mod_scorm: Reference to SYSTEM_CONTEXT instead of real context

This commit is contained in:
Frederic Massart
2014-02-17 15:59:26 +08:00
parent 27ebbdd703
commit 6e1688f7ba
+1 -1
View File
@@ -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');
}