From: Matthias Schmidt <gravatronics@live.com>
Date: Sat, 22 Oct 2016 06:08:01 +0000 (+0200)
Subject: Fix `UserProfile::getAnchorTag()` being called in ACP
X-Git-Tag: 3.0.0_Beta_4~44
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a85414444ecc36c09f88a4cec9289a9bf891ee5;p=GitHub%2FWoltLab%2FWCF.git

Fix `UserProfile::getAnchorTag()` being called in ACP
---

diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php
index 7cdf6e74ae..78f5dd73d0 100644
--- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php
+++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php
@@ -771,9 +771,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject {
 	 * @return	string
 	 */
 	public function getAnchorTag() {
-		$link = LinkHandler::getInstance()->getLink('User', ['object' => $this->getDecoratedObject()]);
-		
-		return '<a href="'.$link.'" class="userLink" data-user-id="'.$this->userID.'">'.StringUtil::encodeHTML($this->username).'</a>';
+		return '<a href="'.$this->getLink().'" class="userLink" data-user-id="'.$this->userID.'">'.StringUtil::encodeHTML($this->username).'</a>';
 	}
 	
 	/**