MDL-22015 more get_list_of_countries() refactoring

This commit is contained in:
Petr Skoda
2010-04-14 14:27:10 +00:00
parent 42b702a627
commit 0aa759b01c
14 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
$mform->addRule('city', $strrequired, 'required', null, 'client');
$choices = get_list_of_countries();
$choices = get_string_manager()->get_list_of_countries();
$choices= array(''=>get_string('selectacountry').'...') + $choices;
$mform->addElement('select', 'country', get_string('selectacountry'), $choices);
$mform->addRule('country', $strrequired, 'required', null, 'client');