Index: temp_moodle_dev/moodle/mod/glossary/comment.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/glossary/comment.php,v diff -u -r1.1 -r1.2 --- temp_moodle_dev/moodle/mod/glossary/comment.php 14 Nov 2008 06:29:49 -0000 1.1 +++ temp_moodle_dev/moodle/mod/glossary/comment.php 27 Nov 2008 02:14:38 -0000 1.2 @@ -79,7 +79,8 @@ } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'add'); $mform->display(); - 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,$glossary->is_lams); die; } } @@ -133,7 +134,8 @@ glossary_comment_print_header($course, $cm, $glossary, $entry, 'delete'); glossary_print_comment($course, $cm, $glossary, $entry, $comment); notice_yesno($strdeletewarning, $linkyes, $linkno, $optionsyes, $optionsno, 'post', 'get'); - 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,$glossary->is_lams); die; } } @@ -198,7 +200,8 @@ } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'edit'); $mform->display(); - 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,$glossary->is_lams); die; } } @@ -227,10 +230,12 @@ $navlinks[] = array('name' => $strcomments, 'link' => "comments.php?id=$cm->id&eid=$entry->id", 'type' => 'title'); $navlinks[] = array('name' => $straction, 'link' => '', 'type' => 'action'); $navigation = build_navigation($navlinks, $cm); - + //we pass a new parameter to the function so it won't we printed if is_lams=1 print_header_simple(format_string($glossary->name), '', $navigation, '', '', true, update_module_button($cm->id, $course->id, $strglossary), - navmenu($course, $cm)); + navmenu($course, $cm),false,'',false,$cm->is_lams); + + /// print original glossary entry for any comment action (add, update, delete) glossary_print_entry($course, $cm, $glossary, $entry, 'approval', '', false); }