From 4e4dc3a1aa25f320b1dc53eb92aee8a4fe099937 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 17 Oct 2017 13:43:52 +0200 Subject: [PATCH] Added missing use of UserProfileRuntimeCache --- .../event/UserProfileCommentUserNotificationEvent.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php index 944514246f..6ab9c68cb3 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php @@ -1,6 +1,5 @@ 'wcf', 'variables' => [ 'commentID' => $this->getUserNotificationObject()->commentID, - 'owner' => new User($this->getUserNotificationObject()->objectID), + 'owner' => UserProfileRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID), 'languageVariablePrefix' => 'wcf.user.notification.comment' ] ]; -- 2.20.1