Update ajaxHelper.php

This commit is contained in:
steve-lad 2021-07-24 09:39:57 +02:00
parent 75858d7cc1
commit 80cf629c0f

View file

@ -732,11 +732,15 @@ trait ajaxHelper {
}
break;
case 'phonecodepage':
$value = 'ISO8859-1';
// TODO: May be other exceptions. Historically this is the only one handled
// TODO: May be other exceptions so use switch. Historically this is the only one handled
if (!empty($get_settings["{$hdr_prefix}devlang"])) {
if ($get_settings["{$hdr_prefix}devlang"] == "Russian_Russian_Federation") {
switch ($get_settings["{$hdr_prefix}devlang"]) {
case 'Russian_Russian_Federation':
$value = 'CP1251';
break;
default:
$value = 'ISO8859-1';
break;
}
}
break;