From: samhemelryk Date: Tue, 8 Sep 2009 03:39:50 +0000 (+0000) Subject: chat MDL-19804 Fixed regression caused by page general type X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=889f591cf01dd4681329710ca6eb0963f3b35d08;p=moodle.git chat MDL-19804 Fixed regression caused by page general type Changed general type to embedded so blocks, header, and footer are not shown in chat user frame --- diff --git a/mod/chat/gui_header_js/users.php b/mod/chat/gui_header_js/users.php index df62e33f56..746ab7c0d7 100644 --- a/mod/chat/gui_header_js/users.php +++ b/mod/chat/gui_header_js/users.php @@ -21,6 +21,9 @@ if (!$USER = $DB->get_record('user', array('id'=>$chatuser->userid))) { // no optimisation here, it would break again in future! print_error('invaliduser'); } + + $PAGE->set_generaltype('embedded'); + $USER->description = ''; //Setup course, lang and theme @@ -66,6 +69,7 @@ $PAGE->requires->data_for_js('uidles', $uidles)->in_head(); $PAGE->requires->js('mod/chat/gui_header_js/chat_gui_header.js')->in_head(); $PAGE->requires->js_function_call('start')->on_dom_ready(); + ob_start(); echo $OUTPUT->header(); /// Print user panel body @@ -85,7 +89,7 @@ $idle = $min.':'.$sec; echo ''; echo "id&course=$courseid','user$chatuser->id','');\" href=\"$CFG->wwwroot/user/view.php?id=$chatuser->id&course=$courseid\">"; - echo $OUTPUT->user_picture(moodle_user_picture::make($chatuser, 0)); + echo $OUTPUT->user_picture(moodle_user_picture::make($chatuser, $courseid)); echo ''; echo '

'; echo fullname($chatuser).'
';