Index: temp_moodle_dev/moodle/mod/chat/report.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -rc19f1e00280a849c8cec7f9c2405000d54ecef28 --- temp_moodle_dev/moodle/mod/chat/report.php (.../report.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/chat/report.php (.../report.php) (revision c19f1e00280a849c8cec7f9c2405000d54ecef28) @@ -40,8 +40,9 @@ if ($start and $end and !$confirmdelete) { // Show a full transcript $navigation = build_navigation($strchatreport, $cm); + //we pass a new parameter to the function so it won't we printed if is_lams=1 print_header_simple(format_string($chat->name).": $strchatreport", '', $navigation, - '', '', true, '', navmenu($course, $cm)); + '', '', true, '', navmenu($course, $cm),false,'',false,$cm->is_lams); /// Check to see if groups are being used here $groupmode = groups_get_activity_groupmode($cm); @@ -83,15 +84,17 @@ print_continue("report.php?id=$cm->id"); } - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); exit; } /// Print the Sessions display $navigation = build_navigation($strchatreport, $cm); + //we pass a new parameter to the function so it won't we printed if is_lams=1 print_header_simple(format_string($chat->name).": $strchatreport", '', $navigation, - '', '', true, '', navmenu($course, $cm)); + '', '', true, '', navmenu($course, $cm),false,'',false,$cm->is_lams); print_heading(format_string($chat->name).': '.get_string('sessions', 'chat')); @@ -127,7 +130,8 @@ if (empty($messages)) { /// May have already got them above if (!$messages = get_records_select('chat_messages', "chatid = '$chat->id' $groupselect", "timestamp DESC")) { print_heading(get_string('nomessages', 'chat')); - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$chat->is_lams); exit; } } @@ -195,6 +199,7 @@ } /// Finish the page - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$cm->is_lams); ?>