Merge branch 'MDL-40462_master' of https://github.com/markn86/moodle

This commit is contained in:
Damyon Wiese
2013-07-16 15:00:46 +08:00
7 changed files with 22 additions and 17 deletions
-12
View File
@@ -7247,18 +7247,6 @@ function context_instance_preload_sql($joinon, $contextlevel, $tablealias) {
return array($select, $join);
}
/**
* Is this context part of any course? if yes return course context,
* if not return null or throw exception.
*
* @deprecated since 2.2, use $context->get_course_context() instead
* @param context $context
* @return course_context context of the enclosing course, null if not found or exception
*/
function get_course_context(context $context) {
return $context->get_course_context(true);
}
/**
* Returns current course id or null if outside of course based on context parameter.
*