diff --git a/admin/user.php b/admin/user.php index ac0f5f94cb62b..80e462d2743c5 100644 --- a/admin/user.php +++ b/admin/user.php @@ -246,7 +246,7 @@ } else { - $countries = get_string_manager()->get_list_of_countries(false); + $countries = get_string_manager()->get_list_of_countries(true); if (empty($mnethosts)) { $mnethosts = $DB->get_records('mnet_host', null, 'id', 'id,wwwroot,name'); } diff --git a/blocks/myprofile/block_myprofile.php b/blocks/myprofile/block_myprofile.php index fa9c1662e5bfd..b596f15aea40d 100644 --- a/blocks/myprofile/block_myprofile.php +++ b/blocks/myprofile/block_myprofile.php @@ -75,7 +75,7 @@ public function get_content() { $this->content->text .= '
'.fullname($USER).'
'; if(!isset($this->config->display_country) || $this->config->display_country == 1) { - $countries = get_string_manager()->get_list_of_countries(); + $countries = get_string_manager()->get_list_of_countries(true); if (isset($countries[$USER->country])) { $this->content->text .= '
'; $this->content->text .= get_string('country') . ': ' . $countries[$USER->country]; diff --git a/user/classes/participants_table.php b/user/classes/participants_table.php index bc66a9efbe101..a53caf185f39f 100644 --- a/user/classes/participants_table.php +++ b/user/classes/participants_table.php @@ -226,7 +226,7 @@ public function __construct($courseid, $currentgroup, $accesssince, $roleid, $en $this->enrolid = $enrolid; $this->status = $status; $this->selectall = $selectall; - $this->countries = get_string_manager()->get_list_of_countries(); + $this->countries = get_string_manager()->get_list_of_countries(true); $this->extrafields = $extrafields; $this->context = $context; if ($canseegroups) {