forked from Wavyzz/dolibarr
Fix: Link to phone with tel: must be only onto terminal that support
protocol "tel:"
This commit is contained in:
@@ -1229,7 +1229,7 @@ function dol_print_phone($phone,$country='',$cid=0,$socid=0,$addlink='',$separ="
|
|||||||
|
|
||||||
if (! empty($addlink)) // Link on phone number + link to add action (if conf->global->AGENDA_ADDACTIONFORPHONE set)
|
if (! empty($addlink)) // Link on phone number + link to add action (if conf->global->AGENDA_ADDACTIONFORPHONE set)
|
||||||
{
|
{
|
||||||
if (! empty($conf->browser)) // If phone, we use link of phone
|
if (! empty($conf->browser->phone)) // If phone, we use link of phone
|
||||||
{
|
{
|
||||||
$newphone ='<a href="tel:'.$phone.'"';
|
$newphone ='<a href="tel:'.$phone.'"';
|
||||||
$newphone.='>'.$phone.'</a>';
|
$newphone.='>'.$phone.'</a>';
|
||||||
|
|||||||
Reference in New Issue
Block a user