Permalink
Browse files

change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid cont…

…ext 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"
  • Loading branch information...
1 parent 68d924c commit 0e04dc36c239cec000d0f2144c49632f1205e525 gbateson committed Sep 26, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/lib.php
View
@@ -775,7 +775,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();

0 comments on commit 0e04dc3

Please sign in to comment.