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

get_context_instance() deprecated since, use context_xxxx::instance() instead. #10

Closed sensei-hacker closed 10 years ago

sensei-hacker commented 11 years ago

master (Moodle 2.6DEV) throws this warning:

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

In deprecatedlib.php, I see get_context_instance has been deprecated since 2.2.

On line #97 of blocks/quickfindlist/block_quickfindlist.php, change:

$context_system = get_context_instance(CONTEXT_SYSTEM);

to:

$context_system = context_system::instance();

sensei-hacker commented 10 years ago

Closed as part of #13 batch "update for Moodle 2.7"

devXela commented 2 years ago

tks!