mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -4489,6 +4489,14 @@ function dol_print_phone($phone, $countrycode = '', $cid = 0, $socid = 0, $addli
|
||||
$newphonewa = $newphone;
|
||||
$newphone = substr($newphone, 0, 3).$separ.substr($newphone, 3, 3).$separ.substr($newphone, 6, 3).$separ.substr($newphone, 10, 3).$separ.substr($newphone, 14, 3);
|
||||
}
|
||||
} elseif (strtoupper($countrycode) == "IN") {//India
|
||||
if (dol_strlen($phone) == 13) {
|
||||
if ($withpicto == 'phone') {//ex: +91_AB_CDEF_GHIJ
|
||||
$newphone = substr($newphone, 0, 3).$separ.substr($newphone, 3, 2).$separ.substr($newphone, 5, 4).$separ.substr($newphone, 9, 4);
|
||||
} else {//ex: +91_ABCDE_FGHIJ
|
||||
$newphone = substr($newphone, 0, 3).$separ.substr($newphone, 3, 5).$separ.substr($newphone, 8, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$newphoneastart = $newphoneaend = '';
|
||||
|
||||
Reference in New Issue
Block a user