From 475bd5cb71483a97db66fe8c8691ede64e3b3f1f Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 8 Feb 2005 21:30:47 +0000 Subject: [PATCH] fixed problems with forced course language --- mod/chat/gui_header_js/index.php | 6 +++--- mod/chat/gui_sockets/index.php | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/mod/chat/gui_header_js/index.php b/mod/chat/gui_header_js/index.php index e3bec8cab8..0fde491fa8 100644 --- a/mod/chat/gui_header_js/index.php +++ b/mod/chat/gui_header_js/index.php @@ -44,14 +44,14 @@ $groupname = ''; } + $strchat = get_string('modulename', 'chat'); // must be before current_language() in chat_login_user() to force course language!!! + if (!$chat_sid = chat_login_user($chat->id, 'header_js', $groupid, $course, true)) { error('Could not log in to chat room!!'); } $params = "chat_sid=$chat_sid"; - $strchat = get_string('modulename', 'chat'); - ?> @@ -66,7 +66,7 @@ - + diff --git a/mod/chat/gui_sockets/index.php b/mod/chat/gui_sockets/index.php index fe83747720..25e86aff46 100644 --- a/mod/chat/gui_sockets/index.php +++ b/mod/chat/gui_sockets/index.php @@ -46,16 +46,14 @@ chat_delete_old_users(); + $strchat = get_string('modulename', 'chat'); // must be before current_language() in chat_login_user() to force course language!!! + if (!$chat_sid = chat_login_user($chat->id, 'sockets', $groupid, $course)) { error('Could not log in to chat room!!'); } - $params = "chat_sid=$chat_sid&groupid=$groupid"; - $strchat = get_string("modulename", "chat"); - - ?> -- 2.39.5