]> git.mjollnir.org Git - moodle.git/commitdiff
change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid context creation...
authorgbateson <gbateson>
Wed, 26 Sep 2007 07:22:06 +0000 (07:22 +0000)
committergbateson <gbateson>
Wed, 26 Sep 2007 07:22:06 +0000 (07:22 +0000)
mod/hotpot/lib.php

index 1df8537a21c1e4093cc31a879bc7e85d565a5f79..08bfdca8a14d6797ff99e582ceb51d0aa01d50d9 100644 (file)
@@ -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();