Resources: Support custom category icons

This commit is contained in:
nathangray 2021-03-31 13:41:31 -06:00
parent 98219a2517
commit 81e918d010

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