MDL-71474 mod_chat: remove redundant next session action item.
Deprecate now unused lang string for same.
This commit is contained in:
@@ -110,7 +110,6 @@ Chats are especially useful when the group chatting is not able to meet face-to-
|
||||
$string['modulename_link'] = 'mod/chat/view';
|
||||
$string['modulenameplural'] = 'Chats';
|
||||
$string['neverdeletemessages'] = 'Never delete messages';
|
||||
$string['nextsession'] = 'Next scheduled session';
|
||||
$string['no_complete_sessions_found'] = 'No complete sessions found.';
|
||||
$string['noguests'] = 'The chat is not open to guests';
|
||||
$string['nochat'] = 'No chat found';
|
||||
@@ -175,5 +174,9 @@ $string['usingchat_help'] = 'The chat module contains some features to make chat
|
||||
* Beeps - You can send a sound to other participants by clicking the "beep" link next to their name. A useful shortcut to beep all the people in the chat at once is to type "beep all".
|
||||
* HTML - If you know some HTML code, you can use it in your text to do things like insert images, play sounds or create different coloured text';
|
||||
$string['viewreport'] = 'View past chat sessions';
|
||||
|
||||
// Deprecated since Moodle 3.11.
|
||||
$string['sessionstart'] = 'The next chat session will start on {$a->date}, ({$a->fromnow} from now)';
|
||||
|
||||
// Deprecated since Moodle 4.0.
|
||||
$string['nextsession'] = 'Next scheduled session';
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
sessionstart,mod_chat
|
||||
nextsession,mod_chat
|
||||
|
||||
@@ -1322,13 +1322,6 @@ function chat_extend_settings_navigation(settings_navigation $settings, navigati
|
||||
global $DB, $PAGE, $USER;
|
||||
$chat = $DB->get_record("chat", array("id" => $PAGE->cm->instance));
|
||||
|
||||
if ($chat->chattime && $chat->schedule) {
|
||||
$nextsessionnode = $chatnode->add(get_string('nextsession', 'chat').
|
||||
': '.userdate($chat->chattime).
|
||||
' ('.usertimezone($USER->timezone).')');
|
||||
$nextsessionnode->add_class('note');
|
||||
}
|
||||
|
||||
$currentgroup = groups_get_activity_group($PAGE->cm, true);
|
||||
if ($currentgroup) {
|
||||
$groupselect = " AND groupid = '$currentgroup'";
|
||||
|
||||
@@ -75,7 +75,6 @@ chat_view($chat, $course, $cm, $context);
|
||||
$strenterchat = get_string('enterchat', 'chat');
|
||||
$stridle = get_string('idle', 'chat');
|
||||
$strcurrentusers = get_string('currentusers', 'chat');
|
||||
$strnextsession = get_string('nextsession', 'chat');
|
||||
|
||||
$courseshortname = format_string($course->shortname, true, array('context' => context_course::instance($course->id)));
|
||||
$title = $courseshortname . ': ' . format_string($chat->name);
|
||||
|
||||
Reference in New Issue
Block a user