From 77bf0c292dd5b8fdbc0a1ddd334d550be4522e3b Mon Sep 17 00:00:00 2001 From: bobopinna Date: Thu, 31 Aug 2006 10:37:33 +0000 Subject: [PATCH] Fixed a typo --- mod/scorm/locallib.php | 2 +- mod/scorm/report.php | 2 +- mod/scorm/view.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index badbef98544..7a279fa8ea2 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -376,7 +376,7 @@ function scorm_course_format_display($user,$course) { $strupdate = get_string('update'); $strmodule = get_string('modulename','scorm'); - $context get_context_instance(CONTEXT_COURSE,$course->id); + $context = get_context_instance(CONTEXT_COURSE,$course->id); echo '
'; if ($scorms = get_all_instances_in_course('scorm', $course)) { diff --git a/mod/scorm/report.php b/mod/scorm/report.php index a9267fba943..acf7686786d 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -42,7 +42,7 @@ 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"); } diff --git a/mod/scorm/view.php b/mod/scorm/view.php index 113c57b0388..4f83bff7956 100755 --- a/mod/scorm/view.php +++ b/mod/scorm/view.php @@ -33,7 +33,7 @@ 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)) { unset($SESSION->scorm_scoid);