From 84e63e94bf57baa18629f151370862731094f68e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 2 Oct 2023 15:12:03 +0200 Subject: [PATCH] Add a failsafe for the creation of test trophies --- .../event/UserTrophyReceivedNotificationEvent.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php index 19da5691a8..f3b610558d 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php @@ -12,6 +12,7 @@ use wcf\data\user\trophy\UserTrophyAction; use wcf\data\user\UserProfile; use wcf\system\cache\builder\CategoryCacheBuilder; use wcf\system\cache\builder\TrophyCacheBuilder; +use wcf\system\style\FontAwesomeIcon; use wcf\system\user\notification\object\UserTrophyNotificationObject; use wcf\system\user\notification\TestableUserNotificationEventHandler; @@ -89,7 +90,7 @@ class UserTrophyReceivedNotificationEvent extends AbstractUserNotificationEvent 'type' => Trophy::TYPE_BADGE, 'isDisabled' => 0, 'awardAutomatically' => 0, - 'iconName' => 'trophy;false', + 'iconName' => FontAwesomeIcon::fromString('trophy;false')->__toString(), 'iconColor' => 'rgba(255, 255, 255, 1)', 'badgeColor' => 'rgba(50, 92, 132, 1)', ], -- 2.20.1