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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user