From 81e918d0100cbe87a55a625ec18335c57c46f328 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 31 Mar 2021 13:41:31 -0600 Subject: [PATCH] Resources: Support custom category icons --- resources/inc/class.resources_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index e8da8ca759..66edfc3a0e 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -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