From 9d9da5e9cbf1e2d45e2492dc83e44941dee0010d Mon Sep 17 00:00:00 2001 From: dongsheng Date: Sat, 5 Sep 2009 18:46:02 +0000 Subject: [PATCH] "MDL-8224, use embedded layout in gui_header_js UI, add a css to gui_basic UI" --- mod/chat/gui_basic/index.php | 1 + mod/chat/gui_header_js/chatinput.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/chat/gui_basic/index.php b/mod/chat/gui_basic/index.php index 00957d0331..d8be302fcb 100644 --- a/mod/chat/gui_basic/index.php +++ b/mod/chat/gui_basic/index.php @@ -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 diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index 4517321572..33e56d5751 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -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); -- 2.39.5