MDL-27941 Fixed a bug introduced by block setting improvement, the

context should be course context
This commit is contained in:
Dongsheng Cai
2011-06-20 16:30:16 +08:00
parent 7a7d34febb
commit 3712f7aaca
+1 -1
View File
@@ -40,7 +40,7 @@
}
$course = $DB->get_record('course', array('id'=>$context->instanceid), '*', MUST_EXIST);
} else {
$course = $DB->get_record('course', array('id'=>SITEID), '*', MUST_EXIST);
$course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST);
$context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST);
}
// not needed anymore