Fix `UserProfile::getAnchorTag()` being called in ACP
authorMatthias Schmidt <gravatronics@live.com>
Sat, 22 Oct 2016 06:08:01 +0000 (08:08 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 22 Oct 2016 06:08:01 +0000 (08:08 +0200)
wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 7cdf6e74ae4ad74ae466e71694ec30e8cf847626..78f5dd73d0d32f60f0e608050d0b8418e6f8055c 100644 (file)
@@ -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>';
        }
        
        /**