"MDL-8224, use embedded layout in gui_header_js UI, add a css to gui_basic UI"
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
require_login($course->id, false, $cm);
|
||||
require_capability('mod/chat:chat',$context);
|
||||
$PAGE->set_generaltype('form');
|
||||
$PAGE->requires->css('mod/chat/chat.css');
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
}
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
||||
|
||||
//Get the user theme
|
||||
$USER = $DB->get_record('user', array('id'=>$chatuser->userid));
|
||||
@@ -32,6 +31,7 @@
|
||||
//Setup course, lang and theme
|
||||
$PAGE->set_course($course);
|
||||
$PAGE->requires->js('mod/chat/gui_header_js/chat_gui_header.js')->in_head();
|
||||
$PAGE->set_generaltype('embedded');
|
||||
|
||||
print_header('', '', '', 'input_chat_message', '', false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user