move chatroom stuff to zlib

This commit is contained in:
redmatrix
2016-05-22 20:54:52 -07:00
parent 20f444f5f2
commit 1aa3051e97
6 changed files with 288 additions and 281 deletions

View File

@@ -1658,8 +1658,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
if ($p['chat'] && feature_enabled($uid,'ajaxchat')) {
require_once('include/chat.php');
$has_chats = chatroom_list_count($uid);
$has_chats = Zotlabs\Lib\Chatroom::list_count($uid);
if ($has_chats) {
$tabs[] = array(
'label' => t('Chatrooms'),