Index: temp_moodle_dev/moodle/mod/chat/report.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/chat/report.php,v diff -u -r1.1 -r1.2 --- temp_moodle_dev/moodle/mod/chat/report.php 14 Nov 2008 06:30:10 -0000 1.1 +++ temp_moodle_dev/moodle/mod/chat/report.php 16 Jan 2009 06:01:45 -0000 1.2 @@ -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); ?>