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:04:56 +01:00
parent e786a591d5
commit bc4e9f628c
+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) {