mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-35264 mod_chat Changing the input frame of chat daemon method to a embedded page layout
This commit is contained in:
parent
71e12dc963
commit
a2d928b143
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ if (!$chatuser = $DB->get_record('chat_users', array('sid'=>$chat_sid))) {
|
|||
$USER = $DB->get_record('user', array('id'=>$chatuser->userid));
|
||||
|
||||
//Setup course, lang and theme
|
||||
$PAGE->set_pagelayout('embedded');
|
||||
$PAGE->set_course($DB->get_record('course', array('id' => $chatuser->course)));
|
||||
$PAGE->requires->js('/mod/chat/gui_sockets/chat_gui_sockets.js', true);
|
||||
$PAGE->requires->js_function_call('setfocus');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue