From b64748eb5487ae523b808da637adc91df2aec995 Mon Sep 17 00:00:00 2001 From: gbateson Date: Tue, 25 Sep 2007 21:43:39 +0000 Subject: [PATCH] corrected include path for "moodleform_mod.php"; changed $course->id to $COURSE->id; --- mod/hotpot/mod_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/hotpot/mod_form.php b/mod/hotpot/mod_form.php index 91cec5ce96..f194eb9629 100644 --- a/mod/hotpot/mod_form.php +++ b/mod/hotpot/mod_form.php @@ -1,5 +1,5 @@ dirroot.'/course/moodleform_mod.php'); require_once ($CFG->dirroot.'/mod/hotpot/lib.php'); $HOTPOT_TEXTSOURCE = array( @@ -64,7 +64,7 @@ class mod_hotpot_mod_form extends moodleform_mod { $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID); if (has_capability('moodle/course:managefiles', $sitecontext)) { $site = get_site(); - if ($course->id==$site->id) { + if ($COURSE->id==$site->id) { $id = $site->id; $location = HOTPOT_LOCATION_SITEFILES; } else { -- 2.39.5