From 159c6e2666065d5a58758e2e32897f74a00cbe1d Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 17 Feb 2014 15:58:44 +0800 Subject: [PATCH] MDL-44247 mod_scorm: Reference to SYSTEM_CONTEXT instead of real context --- mod/scorm/mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/mod_form.php b/mod/scorm/mod_form.php index 6172dd25d78..184efb2010c 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -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'); }