MDL-40462 libraries: deprecated get_course_context()

This commit is contained in:
Mark Nelson
2013-07-11 13:28:45 +08:00
parent 9c03dff2c9
commit dd33f4af0a
7 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class file_info_context_module extends file_info {
return null;
}
$coursecontext = get_course_context($this->context);
$coursecontext = $this->context->get_course_context(true);
if (!$this->course->visible and !has_capability('moodle/course:viewhiddencourses', $coursecontext)) {
return null;
}