MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id()

This commit is contained in:
Ankit Agarwal
2012-08-24 11:30:10 +08:00
parent d71c486507
commit d197ea4300
61 changed files with 92 additions and 92 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ if ($component !== 'user' or $filearea !== 'draft') {
send_file_not_found();
}
$context = get_context_instance_by_id($contextid);
$context = context::instance_by_id($contextid);
if ($context->contextlevel != CONTEXT_USER) {
send_file_not_found();
}