1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Additional data is now serialized

This commit is contained in:
Tim Düsterhus 2012-08-07 21:12:32 +02:00
parent 79588bd16d
commit 60d23310e3
2 changed files with 2 additions and 6 deletions

View File

@ -54,12 +54,8 @@ public function getFormattedMessage($outputType = 'text/html') {
case self::TYPE_JOIN: case self::TYPE_JOIN:
case self::TYPE_LEAVE: case self::TYPE_LEAVE:
case self::TYPE_BACK: case self::TYPE_BACK:
$message = WCF::getLanguage()->get('wcf.chat.message.'.$this->type);
break;
case self::TYPE_AWAY: case self::TYPE_AWAY:
WCF::getTPL()->assign(array( WCF::getTPL()->assign(@unserialize($message));
'message' => $message
));
$message = WCF::getLanguage()->getDynamicVariable('wcf.chat.message.'.$this->type); $message = WCF::getLanguage()->getDynamicVariable('wcf.chat.message.'.$this->type);
break; break;
case self::TYPE_NORMAL: case self::TYPE_NORMAL:

View File

@ -30,7 +30,7 @@ public function getType() {
* @see \wcf\system\chat\command\ICommand::getMessage() * @see \wcf\system\chat\command\ICommand::getMessage()
*/ */
public function getMessage() { public function getMessage() {
return $this->commandHandler->getParameters(); return serialize(array('message' => $this->commandHandler->getParameters()));
} }
/** /**