mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed fallback to images in the api-dir, did not work if no api-image was used before
This commit is contained in:
parent
3511e9d103
commit
2aa000eac8
@ -935,7 +935,15 @@
|
|||||||
{
|
{
|
||||||
$imgfile = $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files[$appname][$image].'/'.$image;
|
$imgfile = $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files[$appname][$image].'/'.$image;
|
||||||
}
|
}
|
||||||
elseif(isset($this->found_files['phpgwapi'][$image.'.png']))
|
else
|
||||||
|
{
|
||||||
|
// searching the image in the api-dirs
|
||||||
|
if (!isset($this->found_files['phpgwapi']))
|
||||||
|
{
|
||||||
|
$this->find_image('phpgwapi','');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($this->found_files['phpgwapi'][$image.'.png']))
|
||||||
{
|
{
|
||||||
$imgfile = $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files['phpgwapi'][$image.'.png'].'/'.$image.'.png';
|
$imgfile = $GLOBALS['phpgw_info']['server']['webserver_url'].$this->found_files['phpgwapi'][$image.'.png'].'/'.$image.'.png';
|
||||||
}
|
}
|
||||||
@ -955,6 +963,7 @@
|
|||||||
{
|
{
|
||||||
$imgfile = '';
|
$imgfile = '';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $imgfile;
|
return $imgfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user