MDL-45242 Lib: Replace calls to deprecated functions
In all cases changes have been kept to a minimum while not making the code completely horrible. For example, there are many instances where it would probably be better to rewrite a query entirely, but I have not done that (in order to reduce the risk of changes).
This commit is contained in:
@@ -241,7 +241,8 @@ class web_service_token_form extends moodleform {
|
||||
if ($usertotal < 500) {
|
||||
list($sort, $params) = users_order_by_sql('u');
|
||||
// User searchable selector - return users who are confirmed, not deleted, not suspended and not a guest.
|
||||
$sql = 'SELECT u.id, ' . get_all_user_name_fields(true, 'u') . '
|
||||
$userfieldsapi = \core\user_fields::for_name();
|
||||
$sql = 'SELECT u.id' . $userfieldsapi->get_sql('u')->selects . '
|
||||
FROM {user} u
|
||||
WHERE u.deleted = 0
|
||||
AND u.confirmed = 1
|
||||
|
||||
Reference in New Issue
Block a user