Skip to content

Commit

Permalink
fixed problems with forced course language
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Feb 8, 2005
1 parent a776c37 commit 475bd5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions mod/chat/gui_header_js/index.php
Expand Up @@ -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');

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Expand All @@ -66,7 +66,7 @@
<frameset rows="0,0,*,50" border="0" framespacing="no" frameborder="no" marginwidth="2" marginheight="1">
<frame src="../empty.php" name="empty" scrolling="no" marginwidth="0" marginheight="0">
<frame src="jsupdate.php?<?php echo $params ?>" name="jsupdate" scrolling="no" marginwidth="0" marginheight="0">
<frame src="chatmsg.php" name="msg" scrolling="auto" marginwidth="2" marginheight="1">
<frame src="chatmsg.php?<?php echo $params ?>" name="msg" scrolling="auto" marginwidth="2" marginheight="1">
<frame src="chatinput.php?<?php echo $params ?>" name="input" scrolling="no" marginwidth="2" marginheight="1">
</frameset>
<frame src="users.php?<?php echo $params ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
Expand Down
6 changes: 2 additions & 4 deletions mod/chat/gui_sockets/index.php
Expand Up @@ -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&amp;groupid=$groupid";

$strchat = get_string("modulename", "chat");


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Expand Down

0 comments on commit 475bd5c

Please sign in to comment.