Replaced usage of deprecated class
This commit is contained in:
parent
8df94fd093
commit
65adabe9d9
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class customcert_element_userfield extends customcert_element_base {
|
|||
public function render_form_elements($mform) {
|
||||
// Get the user fields.
|
||||
$userfields = condition_info::get_condition_user_fields();
|
||||
collatorlib::asort($userfields);
|
||||
core_collator::asort($userfields);
|
||||
|
||||
// Create the select box where the user field is selected.
|
||||
$mform->addElement('select', 'userfield', get_string('userfield', 'customcertelement_userfield'), $userfields);
|
||||
|
|
2
lib.php
2
lib.php
|
@ -397,7 +397,7 @@ function customcert_get_elements() {
|
|||
}
|
||||
}
|
||||
|
||||
collatorlib::asort($options);
|
||||
core_collator::asort($options);
|
||||
return $options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue