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

Take care of the DISPLAY_CLOCK setting

This commit is contained in:
Tim Düsterhus 2012-03-04 15:42:57 +01:00
parent 0bf4293977
commit e3638bd2b1
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ public function execute() {
'roomID' => $room->roomID,
'time' => TIME_NOW,
'type' => \wcf\data\chat\message\ChatMessage::TYPE_INFORMATION,
// TODO: Language item
'message' => 'Tims Chat was updated. Please refresh the page.'
)
));

View File

@ -1 +1 @@
{literal}<dl style="margin: 0;"><dt style="width: 145px; margin: 0;"><time style="float: left;">{@$formattedTime}</time> {@$formattedUsername}</dt> <dd style="padding: 0; margin-left: 150px;">{@$formattedMessage}</dd></dl>{/literal}
{literal}<dl style="margin: 0;"><dt style="width: 145px; margin: 0;">{if CHAT_DISPLAY_CLOCK}<time style="float: left;">{@$formattedTime}</time> {/if}{@$formattedUsername}</dt> <dd style="padding: 0; margin-left: 150px;">{@$formattedMessage}</dd></dl>{/literal}