Browse Source

Some cleanup

pull/617/head
Timothée Jaussoin 8 years ago
parent
commit
86adc90e84
  1. 6
      app/widgets/Chat/Chat.php
  2. 2
      app/widgets/Chat/_chat_empty.tpl

6
app/widgets/Chat/Chat.php

@ -790,9 +790,6 @@ class Chat extends \Movim\Widget\Base
{
$view = $this->tpl();
$chats = \App\Cache::c('chats');
$chats = ($chats == null) ? false : array_keys($chats);
$conferences = \App\Info::where('category', 'conference')
->whereNotIn('server', $this->user->session->conferences->pluck('conference')->toArray())
->where('mucpublic', true)
@ -806,7 +803,8 @@ class Chat extends \Movim\Widget\Base
$view->assign('presencestxt', getPresencesTxt());
$view->assign('conferences', $conferences);
$view->assign('top', []/*$cd->getTop(8, $chats)*/);
$view->assign('top', []);
return $view->draw('_chat_empty', true);
}

2
app/widgets/Chat/_chat_empty.tpl

@ -31,7 +31,7 @@
</li>
{/loop}
{if="$conferences"}
{if="$conferences->isNotEmpty()"}
<li class="subheader block large">
<p>{$c->__('chatrooms.title')}</p>
</li>

Loading…
Cancel
Save