From 4ef222e7ff5c3189aa350466a52aeb73c15042c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 Jun 2013 07:45:11 +0000 Subject: [PATCH] allow to use protocol independent url like "//host/path/to/logo.png" for logo in admin site configuration --- phpgwapi/templates/idots/class.idots_framework.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index dd4b6d30cb..3bcaff9d34 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -400,7 +400,8 @@ egw.set_user('.$GLOBALS['egw']->accounts->json($GLOBALS['egw_info']['user']['acc $tmpl->set_var('website_title', $GLOBALS['egw_info']['server']['site_title']); $tmpl->set_var('template_set',$this->template); - if (substr($GLOBALS['egw_info']['server']['login_logo_file'],0,4) == 'http') + if (substr($GLOBALS['egw_info']['server']['login_logo_file'], 0, 4) == 'http' || + strpos($GLOBALS['egw_info']['server']['login_logo_file'], '//') !== false) { $var['logo_file'] = $GLOBALS['egw_info']['server']['login_logo_file']; }