forked from Wavyzz/dolibarr
Improve settings for phone number (Madagascar)
This commit is contained in:
committed by
Laurent Destailleur
parent
c21597e839
commit
6a27df53f9
@@ -3031,8 +3031,8 @@ function dol_print_phone($phone, $countrycode = '', $cid = 0, $socid = 0, $addli
|
||||
$newphone = substr($newphone, 0, 5).$separ.substr($newphone, 5, 3).$separ.substr($newphone, 8, 4);
|
||||
}
|
||||
} elseif (strtoupper($countrycode) == "MG") {//Madagascar
|
||||
if (dol_strlen($phone) == 13) {//ex: +261_AB_CD_EF_GHI
|
||||
$newphone = substr($newphone, 0, 4).$separ.substr($newphone, 4, 2).$separ.substr($newphone, 6, 2).$separ.substr($newphone, 8, 2).$separ.substr($newphone, 10, 3);
|
||||
if (dol_strlen($phone) == 13) {//ex: +261_AB_CD_EFG_HI
|
||||
$newphone = substr($newphone, 0, 4).$separ.substr($newphone, 4, 2).$separ.substr($newphone, 6, 2).$separ.substr($newphone, 8, 3).$separ.substr($newphone, 11, 2);
|
||||
}
|
||||
} elseif (strtoupper($countrycode) == "GB") {//Royaume uni
|
||||
if (dol_strlen($phone) == 13) {//ex: +44_ABCD_EFG_HIJ
|
||||
|
||||
Reference in New Issue
Block a user