From: Alexander Ebert Date: Mon, 2 Oct 2023 13:12:03 +0000 (+0200) Subject: Add a failsafe for the creation of test trophies X-Git-Tag: 6.0.0~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84e63e94bf57baa18629f151370862731094f68e;p=GitHub%2FWoltLab%2FWCF.git Add a failsafe for the creation of test trophies --- 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)', ],