From 88fe6acf9edd2a93ebc72df27fa335adc7cf5813 Mon Sep 17 00:00:00 2001 From: gbateson Date: Wed, 26 Sep 2007 07:22:06 +0000 Subject: [PATCH] change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid context creation for level 50 instance" error on "mod/hotpot/index.php" caused by get_context_instance(CONTEXT_MODULE, $course->id) in "mod/hotpot/lib.php" --- mod/hotpot/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 1df8537a21..08bfdca8a1 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -767,7 +767,7 @@ function hotpot_get_all_instances_in_course($modulename, $course) { // cache $isteacher setting - $isteacher = has_capability('mod/hotpot:viewreport', get_context_instance(CONTEXT_MODULE, $course->id)); + $isteacher = has_capability('mod/hotpot:viewreport', get_context_instance(CONTEXT_COURSE, $course->id)); $explodesection = array(); $order = array(); -- 2.39.5