allow to use protocol independent url like "//host/path/to/logo.png" for logo in admin site configuration

This commit is contained in:
Ralf Becker 2013-06-24 07:45:11 +00:00
parent 293d395472
commit 4ef222e7ff

View File

@ -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'];
}