MDL-35264 mod_chat Changing the input frame of chat daemon method to a embedded page...
authorDavid Monllao <davidm@moodle.com>
Thu, 6 Sep 2012 02:28:52 +0000 (10:28 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 7 Sep 2012 04:07:46 +0000 (12:07 +0800)
mod/chat/gui_sockets/chatinput.php

index 237f488..d0603c2 100644 (file)
@@ -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');