diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserNeedActivationUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserNeedActivationUserNotificationEvent.class.php index fcd1423d945..3a19427e616 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserNeedActivationUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserNeedActivationUserNotificationEvent.class.php @@ -3,6 +3,7 @@ namespace wcf\system\user\notification\event; use wcf\data\user\UserProfile; +use wcf\page\UserPage; use wcf\system\request\LinkHandler; use wcf\system\user\notification\object\UserRegistrationUserNotificationObject; @@ -64,9 +65,8 @@ public function getEmailMessage($notificationType = 'instant') #[\Override] public function getLink(): string { - return LinkHandler::getInstance()->getLink('UserEdit', [ + return LinkHandler::getInstance()->getControllerLink(UserPage::class, [ 'object' => $this->getUserNotificationObject(), - 'isACP' => true, ]); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationSuccessUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationSuccessUserNotificationEvent.class.php index 588bcb08479..f102d32bf07 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationSuccessUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserRegistrationSuccessUserNotificationEvent.class.php @@ -3,6 +3,7 @@ namespace wcf\system\user\notification\event; use wcf\data\user\UserProfile; +use wcf\page\UserPage; use wcf\system\request\LinkHandler; use wcf\system\user\notification\object\UserRegistrationUserNotificationObject; @@ -55,7 +56,7 @@ public function getEmailMessage($notificationType = 'instant') 'application' => 'wcf', 'variables' => [ 'notification' => $this->notification, - 'username' => $this->getUserNotificationObject()->username, + 'username' => $this->getUserNotificationObject()->username, 'userNotificationObject' => $this->getUserNotificationObject(), ], ]; @@ -64,9 +65,8 @@ public function getEmailMessage($notificationType = 'instant') #[\Override] public function getLink(): string { - return LinkHandler::getInstance()->getLink('UserEdit', [ + return LinkHandler::getInstance()->getControllerLink(UserPage::class, [ 'object' => $this->getUserNotificationObject(), - 'isACP' => true, ]); }