forked from extern/egroupware
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;
|
||||
}
|
||||
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';
|
||||
}
|
||||
@ -955,6 +963,7 @@
|
||||
{
|
||||
$imgfile = '';
|
||||
}
|
||||
}
|
||||
return $imgfile;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user