diff --git a/main/group/group_space.php b/main/group/group_space.php index f8dab56f7e..6fc0508ae8 100644 --- a/main/group/group_space.php +++ b/main/group/group_space.php @@ -218,7 +218,14 @@ if (api_is_allowed_to_edit(false,true) OR GroupManager :: is_user_in_group($_SES if ( $current_group['chat_state'] != TOOL_NOT_AVAILABLE) { //link to the chat area of this group - $tools .= "
".Display::return_icon('chat.gif', get_lang("Chat"))." ".get_lang("Chat")."
"; + if(api_get_course_setting('allow_open_chat_window')==true) + { + $tools .= "
".Display::return_icon('chat.gif', get_lang("Chat"))." ".get_lang("Chat")."
"; + } + else + { + $tools .= "
".Display::return_icon('chat.gif', get_lang("Chat"))." ".get_lang("Chat")."
"; + } } echo '
'.get_lang("Tools").':
'; @@ -273,7 +280,14 @@ if (api_is_allowed_to_edit(false,true) OR GroupManager :: is_user_in_group($_SES if ( $current_group['chat_state'] == TOOL_PUBLIC ) { //link to the chat area of this group - $tools .= "".Display::return_icon('chat.gif', get_lang('Chat'))." ".get_lang('Chat')."
"; + if(api_get_course_setting('allow_open_chat_window')==true) + { + $tools .= "
".Display::return_icon('chat.gif', get_lang("Chat"))." ".get_lang("Chat")."
"; + } + else + { + $tools .= "
".Display::return_icon('chat.gif', get_lang("Chat"))." ".get_lang("Chat")."
"; + } } echo '
';