Replaced usage of deprecated class

This commit is contained in:
Mark Nelson 2013-07-23 14:47:43 +08:00
parent 8df94fd093
commit 65adabe9d9
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -397,7 +397,7 @@ function customcert_get_elements() {
}
}
collatorlib::asort($options);
core_collator::asort($options);
return $options;
}