Changed get_context_instance() to context_course::instance() etc using change_get_context_instance.txt