mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
print notice when guest views chat.
This commit is contained in:
parent
c89bf29585
commit
d022e34545
2 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@ $string['modulename'] = 'Chat';
|
||||||
$string['modulenameplural'] = 'Chats';
|
$string['modulenameplural'] = 'Chats';
|
||||||
$string['neverdeletemessages'] = 'Never delete messages';
|
$string['neverdeletemessages'] = 'Never delete messages';
|
||||||
$string['nextsession'] = 'Next scheduled session';
|
$string['nextsession'] = 'Next scheduled session';
|
||||||
|
$string['noguests'] = 'The chat is not open to guests';
|
||||||
$string['nomessages'] = 'No messages yet';
|
$string['nomessages'] = 'No messages yet';
|
||||||
$string['repeatdaily'] = 'At the same time every day';
|
$string['repeatdaily'] = 'At the same time every day';
|
||||||
$string['repeatnone'] = 'No repeats - publish the specified time only';
|
$string['repeatnone'] = 'No repeats - publish the specified time only';
|
||||||
|
|
|
@ -102,6 +102,8 @@
|
||||||
link_to_popup_window ("/mod/chat/gui_$CFG->chat_method/index.php?id=$chat->id$groupparam",
|
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);
|
"chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, $strchat);
|
||||||
print_simple_box_end();
|
print_simple_box_end();
|
||||||
|
} else {
|
||||||
|
notice(get_string('noguests', 'chat'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue