"MDL-8224, use embedded layout in gui_header_js UI, add a css to gui_basic UI"

This commit is contained in:
dongsheng
2009-09-05 18:46:02 +00:00
parent 83064f9c24
commit 9d9da5e9cb
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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);