MDL-61658 user: Fix parsing of the agedigitalconsentmap setting

When parsing and validating the value of the Digital age of consent
(agedigitalconsentmap) field, we want to load all country codes. Not
just the ones whitelisted for drop down menus that users can choose
from.
This commit is contained in:
David Mudrák
2018-03-21 18:15:19 +01:00
parent c485e42447
commit a3ef4709ae
+1 -1
View File
@@ -71,7 +71,7 @@ class digital_consent {
public static function parse_age_digital_consent_map($ageconsentmap) {
$ageconsentmapparsed = array();
$countries = get_string_manager()->get_list_of_countries();
$countries = get_string_manager()->get_list_of_countries(true);
$isdefaultvaluepresent = false;
$lines = preg_split('/\r|\n/', $ageconsentmap, -1, PREG_SPLIT_NO_EMPTY);
foreach ($lines as $line) {