mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
removed formatting chars from the phone-number in callto:-links, as the mess up the links
This commit is contained in:
parent
372c2b4b28
commit
f2ea7ea2f6
@ -1727,6 +1727,8 @@ $readonlys['button[vcard]'] = true;
|
||||
$user = $this->read('account:'.$GLOBALS['egw_info']['user']['account_id']);
|
||||
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
||||
}
|
||||
$number = str_replace(array(' ','(',')','/','-'),'',$number); // remove number formatting chars messing up the links
|
||||
|
||||
$link = str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone),
|
||||
$this->config['call_link']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user