From 56f88f2e30ef75fa7e41cbcbbc6344abc6b7d37d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 13 Sep 2018 11:32:43 +0200 Subject: move chat from feature to apps --- include/features.php | 10 ---------- include/nav.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'include') diff --git a/include/features.php b/include/features.php index b7e1878c3..5479be122 100644 --- a/include/features.php +++ b/include/features.php @@ -118,16 +118,6 @@ function get_features($filtered = true, $level = (-1)) { feature_level('photo_location',2), ], - [ - 'ajaxchat', - t('Access Controlled Chatrooms'), - t('Provide chatrooms and chat services with access control.'), - true, - get_config('feature_lock','ajaxchat'), - feature_level('ajaxchat',1), - ], - - [ 'smart_birthdays', t('Smart Birthdays'), diff --git a/include/nav.php b/include/nav.php index 15060a033..9afba7945 100644 --- a/include/nav.php +++ b/include/nav.php @@ -417,7 +417,7 @@ function channel_apps($is_owner = false, $nickname = null) { } - if ($p['chat'] && feature_enabled($uid,'ajaxchat')) { + if ($p['chat'] && Apps::system_app_installed($uid,'Chatrooms')) { $has_chats = Chatroom::list_count($uid); if ($has_chats) { $tabs[] = [ -- cgit v1.2.3