mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed a typo
This commit is contained in:
parent
0d699c2449
commit
77bf0c292d
@ -376,7 +376,7 @@ function scorm_course_format_display($user,$course) {
|
|||||||
|
|
||||||
$strupdate = get_string('update');
|
$strupdate = get_string('update');
|
||||||
$strmodule = get_string('modulename','scorm');
|
$strmodule = get_string('modulename','scorm');
|
||||||
$context get_context_instance(CONTEXT_COURSE,$course->id);
|
$context = get_context_instance(CONTEXT_COURSE,$course->id);
|
||||||
|
|
||||||
echo '<div class="mod-scorm">';
|
echo '<div class="mod-scorm">';
|
||||||
if ($scorms = get_all_instances_in_course('scorm', $course)) {
|
if ($scorms = get_all_instances_in_course('scorm', $course)) {
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
require_login($course->id, false, $cm);
|
require_login($course->id, false, $cm);
|
||||||
|
|
||||||
if (!has_capability('mod/scorm:viewreport', get_context_instance(CONTEXT_MODULE,$cm->id)) {
|
if (!has_capability('mod/scorm:viewreport', get_context_instance(CONTEXT_MODULE,$cm->id))) {
|
||||||
error("You are not allowed to use this script");
|
error("You are not allowed to use this script");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
require_login($course->id, false, $cm);
|
require_login($course->id, false, $cm);
|
||||||
|
|
||||||
$context = get_context_instance(CONTEXT_COURSE, $course->id)
|
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||||
|
|
||||||
if (isset($SESSION->scorm_scoid)) {
|
if (isset($SESSION->scorm_scoid)) {
|
||||||
unset($SESSION->scorm_scoid);
|
unset($SESSION->scorm_scoid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user