Hide friend-only option if friend feature is disabled in communication module

This commit is contained in:
Kijin Sung 2018-07-02 15:54:19 +09:00
parent 712287d564
commit b8fc4ca46f

View file

@ -833,6 +833,12 @@ class communicationController extends communication
{
$oMemberController->addMemberMenu('dispCommunicationFriend', 'cmd_view_friend');
}
else
{
$allow_message_type = lang('communication.allow_message_type');
unset($allow_message_type['F']);
$GLOBALS['lang']->set('communication.allow_message_type', $allow_message_type);
}
}
function triggerMemberMenu()