MDL-69772 lang: Ignore misconfigured allcountrycodes filter
authorDavid Mudrák <david@moodle.com>
Thu, 24 Sep 2020 11:41:59 +0000 (13:41 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 24 Sep 2020 16:14:29 +0000 (18:14 +0200)
commit56adf1f3d8fc7b73fa4aabba883a4c9af3e6f775
tree1f44378ffb9a4287a0a0525656e0330faa16d4b3
parentab5d361c804f9b1884f625d1c39215ee2350edd4
MDL-69772 lang: Ignore misconfigured allcountrycodes filter

If the allcountrycodes filter contains only invalid values, ignore the
whole filter setting and make get_list_of_countries() return the full
list of all known countries, rather than empty list.
lib/classes/string_manager_standard.php
lib/tests/string_manager_standard_test.php