From 32eb1bafa6e02e570698488ad4d04e2aa06f24af Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 30 Jul 2008 11:08:51 +0000 Subject: [PATCH] "fix for bug #1643: %t in phone numbers (telephony intergration) does not work" --- etemplate/inc/class.url_widget.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.url_widget.inc.php b/etemplate/inc/class.url_widget.inc.php index 6dc591ea1d..82e0f7791a 100644 --- a/etemplate/inc/class.url_widget.inc.php +++ b/etemplate/inc/class.url_widget.inc.php @@ -100,7 +100,7 @@ class url_widget $cell['size'] .= '|[^<]+ ?<'.self::EMAIL_PREG.'>'; } $cell['size'] .= ')$/i'; - } + } #_debug_array($cell); break; } @@ -119,7 +119,7 @@ class url_widget } elseif (strpos($email=$value,'@') !== false) { - if (strpos($email=$value,'&') !== false) + if (strpos($email=$value,'&') !== false) { list($email,$addoptions) = explode('&',$value,2); $rfc822 = $value = $email; @@ -226,7 +226,7 @@ class url_widget if (!$number || !$GLOBALS['egw_info']['server']['call_link']) return false; static $userphone; - if (is_null($userphone) && strpos($GLOBALS['egw_info']['server']['call_link'],'%u') !== false) + if (is_null($userphone) && strpos($GLOBALS['egw_info']['server']['call_link'],'%t') !== false) { $user = $GLOBALS['egw']->contacts->read('account:'.$GLOBALS['egw_info']['user']['account_id']); $userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;