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:
parent
79588bd16d
commit
60d23310e3
@ -54,12 +54,8 @@ public function getFormattedMessage($outputType = 'text/html') {
|
||||
case self::TYPE_JOIN:
|
||||
case self::TYPE_LEAVE:
|
||||
case self::TYPE_BACK:
|
||||
$message = WCF::getLanguage()->get('wcf.chat.message.'.$this->type);
|
||||
break;
|
||||
case self::TYPE_AWAY:
|
||||
WCF::getTPL()->assign(array(
|
||||
'message' => $message
|
||||
));
|
||||
WCF::getTPL()->assign(@unserialize($message));
|
||||
$message = WCF::getLanguage()->getDynamicVariable('wcf.chat.message.'.$this->type);
|
||||
break;
|
||||
case self::TYPE_NORMAL:
|
||||
|
@ -30,7 +30,7 @@ public function getType() {
|
||||
* @see \wcf\system\chat\command\ICommand::getMessage()
|
||||
*/
|
||||
public function getMessage() {
|
||||
return $this->commandHandler->getParameters();
|
||||
return serialize(array('message' => $this->commandHandler->getParameters()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user