mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Ensure getimagesize() is run on the real file location
This commit is contained in:
parent
95dd4addd8
commit
a7ed74c97d
@ -344,13 +344,14 @@
|
||||
|
||||
// retrieve logo from login template set
|
||||
// FIXME $GLOBALS['phpgw']->common->image must get extra argument: force to look in this template set thirst
|
||||
$template_logo_file=$GLOBALS['phpgw_info']['server']['webserver_url'].'/phpgwapi/templates/'.$GLOBALS['phpgw_info']['login_template_set'].'/images/logo.png';
|
||||
$template_logo_file = $GLOBALS['phpgw_info']['server']['webserver_url'].'/phpgwapi/templates/'.$GLOBALS['phpgw_info']['login_template_set'].'/images/logo.png';
|
||||
$template_logo_real = PHPGW_SERVER_ROOT . '/phpgwapi/templates/'.$GLOBALS['phpgw_info']['login_template_set'].'/images/logo.png';
|
||||
|
||||
if($GLOBALS['phpgw_info']['server']['login_logo_file'])
|
||||
{
|
||||
$tmpl->set_var('logo_file',$GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']));
|
||||
}
|
||||
elseif(getimagesize($template_logo_file))
|
||||
elseif(getimagesize($template_logo_real))
|
||||
{
|
||||
$tmpl->set_var('logo_file',$template_logo_file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user