Merge branch 'MDL-34550-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2014-12-16 13:35:52 +01:00
commit 3bd434cd49
2 changed files with 1 additions and 10 deletions

View file

@ -3250,16 +3250,10 @@ function get_context_instance($contextlevel, $instance = 0, $strictness = IGNORE
* Get a context instance as an object, from a given context id.
*
* @deprecated since Moodle 2.2 MDL-35009 - please do not use this function any more.
* @todo MDL-34550 This will be deleted in Moodle 2.8
* @see context::instance_by_id($id)
* @param int $id context id
* @param int $strictness IGNORE_MISSING means compatible mode, false returned if record not found, debug message if more found;
* MUST_EXIST means throw exception if no record or multiple records found
* @return context|bool the context object or false if not found.
*/
function get_context_instance_by_id($id, $strictness = IGNORE_MISSING) {
debugging('get_context_instance_by_id() is deprecated, please use context::instance_by_id($id) instead.', DEBUG_DEVELOPER);
return context::instance_by_id($id, $strictness);
throw new coding_exception('get_context_instance_by_id() is now removed, please use context::instance_by_id($id) instead.');
}
/**