marxjohnson / moodle-block_quickfindlist

Moodle block providing a quick method of searching users
http://moodle.org/mod/data/view.php?d=13&rid=2200
6 stars 15 forks source link

Debugging: get_context_instance() is deprecated, please use context_xxxx::instance() instead. #24

Open davidpesce opened 5 years ago

davidpesce commented 5 years ago

On line 37 of quickfind.php, change:

$context = get_context_instance(CONTEXT_COURSE, $courseid); to $context = context_course::instance($courseid);

marxjohnson commented 5 years ago

Hi David, If you can do a Pull Request with this change, I'll be happy to merge it and do a release.

Thanks Mark