Added missing use of UserProfileRuntimeCache
authorMarcel Werk <burntime@woltlab.com>
Tue, 17 Oct 2017 11:43:52 +0000 (13:43 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 17 Oct 2017 11:43:58 +0000 (13:43 +0200)
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php

index 944514246f44938773be546a8b7db1446a136c9c..6ab9c68cb36d1309f1887dfadf4b51598de8695e 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 namespace wcf\system\user\notification\event;
-use wcf\data\user\User;
 use wcf\data\user\UserProfile;
 use wcf\system\cache\runtime\UserProfileRuntimeCache;
 use wcf\system\comment\CommentHandler;
@@ -84,7 +83,7 @@ class UserProfileCommentUserNotificationEvent extends AbstractSharedUserNotifica
                        'application' => 'wcf',
                        'variables' => [
                                'commentID' => $this->getUserNotificationObject()->commentID,
-                               'owner' => new User($this->getUserNotificationObject()->objectID),
+                               'owner' => UserProfileRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID),
                                'languageVariablePrefix' => 'wcf.user.notification.comment'
                        ]
                ];