1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Add .userLink

This commit is contained in:
Tim Düsterhus 2012-08-15 18:04:09 +02:00
parent f507070d20
commit a1d4028723

View File

@ -30,7 +30,7 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
$profile = \wcf\system\request\LinkHandler::getInstance()->getLink('User', array( $profile = \wcf\system\request\LinkHandler::getInstance()->getLink('User', array(
'object' => $this->user 'object' => $this->user
)); ));
$this->lines[WCF::getLanguage()->get('wcf.user.username')] = '<a href="'.$profile.'">'.ChatUtil::gradient($this->user->username, $color[1], $color[2]).'</a>'; $this->lines[WCF::getLanguage()->get('wcf.user.username')] = '<a href="'.$profile.'" class="userLink" data-user-id="'.$this->user->userID.'">'.ChatUtil::gradient($this->user->username, $color[1], $color[2]).'</a>';
// Away-Status // Away-Status
if (ChatUtil::readUserData('away', $this->user) !== null) { if (ChatUtil::readUserData('away', $this->user) !== null) {
@ -54,7 +54,7 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
} }
/** /**
* Fetches the session-databaseobject for the specified user. * Fetches the sessiondatabase object for the specified user.
* *
* @return \wcf\data\session\Session * @return \wcf\data\session\Session
*/ */