From: skodak Date: Tue, 8 Feb 2005 21:30:47 +0000 (+0000) Subject: fixed problems with forced course language X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=475bd5cb71483a97db66fe8c8691ede64e3b3f1f;p=moodle.git fixed problems with forced course language --- 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"); - - ?>