From 1e3852f5ae125b2f2bc227c9a5c38b81f0ff9527 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sat, 10 Jan 2015 00:47:49 +0100 Subject: [PATCH] Check for maxUsers in chat.tpl --- template/chat.tpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/template/chat.tpl b/template/chat.tpl index 18cfe0a..e03b339 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -4,7 +4,7 @@ {if $room}{$room} - {/if}{lang}chat.global.title{/lang} - {PAGE_TITLE|language} {include file='headInclude'} - {if $room} + {if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers)} {include file='javascriptInclude' application='chat'}