From: gustav_delius Date: Sat, 21 Aug 2004 21:18:33 +0000 (+0000) Subject: print notice when guest views chat. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d022e345450e87bc40a522f8a3561e7b78d19993;p=moodle.git print notice when guest views chat. --- diff --git a/lang/en/chat.php b/lang/en/chat.php index 2903a55b3c..1d058a4f19 100644 --- a/lang/en/chat.php +++ b/lang/en/chat.php @@ -35,6 +35,7 @@ $string['modulename'] = 'Chat'; $string['modulenameplural'] = 'Chats'; $string['neverdeletemessages'] = 'Never delete messages'; $string['nextsession'] = 'Next scheduled session'; +$string['noguests'] = 'The chat is not open to guests'; $string['nomessages'] = 'No messages yet'; $string['repeatdaily'] = 'At the same time every day'; $string['repeatnone'] = 'No repeats - publish the specified time only'; diff --git a/mod/chat/view.php b/mod/chat/view.php index 4153815434..f940210877 100644 --- a/mod/chat/view.php +++ b/mod/chat/view.php @@ -102,6 +102,8 @@ link_to_popup_window ("/mod/chat/gui_$CFG->chat_method/index.php?id=$chat->id$groupparam", "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, $strchat); print_simple_box_end(); + } else { + notice(get_string('noguests', 'chat')); }