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

This commit is contained in:
Damyon Wiese 2013-07-16 14:49:25 +08:00
commit ed9e492087
7 changed files with 27 additions and 20 deletions

View file

@ -7247,19 +7247,6 @@ function context_instance_preload_sql($joinon, $contextlevel, $tablealias) {
return array($select, $join);
}
/**
* Get a URL for a context, if there is a natural one. For example, for
* CONTEXT_COURSE, this is the course page. For CONTEXT_USER it is the
* user profile page.
*
* @deprecated since 2.2
* @param context $context the context.
* @return moodle_url
*/
function get_context_url(context $context) {
return $context->get_url();
}
/**
* Is this context part of any course? if yes return course context,
* if not return null or throw exception.