MDL-71474 mod_chat: remove redundant next session action item.

Deprecate now unused lang string for same.
This commit is contained in:
Paul Holden
2021-05-28 14:49:11 +01:00
parent 30b8ad51f4
commit fcbb2bda56
4 changed files with 5 additions and 9 deletions
+4 -1
View File
@@ -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
View File
@@ -1 +1,2 @@
sessionstart,mod_chat
nextsession,mod_chat
-7
View File
@@ -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'";
-1
View File
@@ -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);