diff --git a/mod/chat/lang/en/chat.php b/mod/chat/lang/en/chat.php index 08a0fe926e2..8c1ff566792 100644 --- a/mod/chat/lang/en/chat.php +++ b/mod/chat/lang/en/chat.php @@ -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'; diff --git a/mod/chat/lang/en/deprecated.txt b/mod/chat/lang/en/deprecated.txt index 5262248af39..7c5b10207a1 100644 --- a/mod/chat/lang/en/deprecated.txt +++ b/mod/chat/lang/en/deprecated.txt @@ -1 +1,2 @@ sessionstart,mod_chat +nextsession,mod_chat diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 2df0acde47a..78bbef7cf39 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -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'"; diff --git a/mod/chat/view.php b/mod/chat/view.php index ad98f546fdc..29439cdfbfd 100644 --- a/mod/chat/view.php +++ b/mod/chat/view.php @@ -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);