mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-40431_master' of https://github.com/markn86/moodle
This commit is contained in:
commit
ed9e492087
7 changed files with 27 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue