Resources: Fix display of old category icons in resource list

This commit is contained in:
nathangray 2021-04-01 11:12:44 -06:00
parent 4ab170541e
commit 42f8c9182e

View File

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