MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method

This commit is contained in:
Ankit Agarwal
2012-08-02 15:37:38 +08:00
parent 470d47f512
commit bf0f06b1be
56 changed files with 189 additions and 189 deletions
+2 -2
View File
@@ -170,8 +170,8 @@ function note_print($note, $detail = NOTES_SHOW_FULL) {
debugging("User $note->usermodified not found");
return;
}
$context = get_context_instance(CONTEXT_COURSE, $note->courseid);
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$context = context_course::instance($note->courseid);
$systemcontext = context_system::instance();
$authoring = new stdClass();
$authoring->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$author->id.'&amp;course='.$note->courseid.'">'.fullname($author).'</a>';