From b64a0de528e464b5c80ddee09fd8204a84f6de3c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 May 2011 14:59:40 +0000 Subject: [PATCH] allow to specify "none" in popup size for no popup AND no link target, to allow dial scripts to use status "204 No Content" --- etemplate/inc/class.url_widget.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.url_widget.inc.php b/etemplate/inc/class.url_widget.inc.php index 96142f249d..6af131e7c7 100644 --- a/etemplate/inc/class.url_widget.inc.php +++ b/etemplate/inc/class.url_widget.inc.php @@ -183,7 +183,8 @@ class url_widget $link = $GLOBALS['egw_info']['server']['webserver_url'].'/redirect.php?go='.$link; if ($link[0] == '/') $link = ($_SERVER['HTTPS'] ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$link; } - $cell['size'] = ','.$link.',,,calling,'.$GLOBALS['egw_info']['server']['call_popup']; + $cell['size'] = ','.$link.($GLOBALS['egw_info']['server']['call_popup']=='none' ? '' : // 'none' = no target + ',,,calling,'.$GLOBALS['egw_info']['server']['call_popup']); } break; }