Resources: Support custom category icons

This commit is contained in:
nathangray 2021-03-31 13:41:31 -06:00
parent 62a02c61b6
commit 589b18b26f

View File

@ -1016,7 +1016,7 @@ class resources_bo
$picture = Api\Categories::id2name($resource['cat_id'], 'data');
if($picture['icon'])
{
$picture = !$fullsize?$GLOBALS['egw_info']['server']['webserver_url'].self::ICON_PATH.'/'.$picture['icon']:self::ICON_PATH.'/'.$picture['icon'];
$picture = Api\Image::find('vfs',$picture['icon']) ?: self::ICON_PATH.'/'.$picture['icon'];
break;
}
// fall through