Index: temp_moodle_dev/moodle/mod/glossary/comment.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -r5063e98cf451d2bd9e9c25464a397ce6d0e405e5 --- temp_moodle_dev/moodle/mod/glossary/comment.php (.../comment.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/glossary/comment.php (.../comment.php) (revision 5063e98cf451d2bd9e9c25464a397ce6d0e405e5) @@ -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); } Index: temp_moodle_dev/moodle/mod/glossary/comments.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -r5063e98cf451d2bd9e9c25464a397ce6d0e405e5 --- temp_moodle_dev/moodle/mod/glossary/comments.php (.../comments.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/glossary/comments.php (.../comments.php) (revision 5063e98cf451d2bd9e9c25464a397ce6d0e405e5) @@ -43,9 +43,10 @@ $straddcomment = get_string("addcomment", "glossary"); $navigation = build_navigation($strcomments, $cm); + //we pass a new parameter to the function so it won't we printed if is_lams=1 print_header_simple(strip_tags("$strcomments: $entry->concept"), "", $navigation, "", "", true, update_module_button($cm->id, $course->id, $strglossary), - navmenu($course, $cm)); + navmenu($course, $cm),false,'',false,$cm->is_lams); /// original glossary entry @@ -73,6 +74,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,$glossary->is_lams); ?> Index: temp_moodle_dev/moodle/mod/glossary/exportentry.php =================================================================== diff -u -r5251d2a62e0e78377219456d6bba613eb2d1fd26 -r5063e98cf451d2bd9e9c25464a397ce6d0e405e5 --- temp_moodle_dev/moodle/mod/glossary/exportentry.php (.../exportentry.php) (revision 5251d2a62e0e78377219456d6bba613eb2d1fd26) +++ temp_moodle_dev/moodle/mod/glossary/exportentry.php (.../exportentry.php) (revision 5063e98cf451d2bd9e9c25464a397ce6d0e405e5) @@ -37,7 +37,6 @@ $strglossaries = get_string('modulenameplural', 'glossary'); $entryalreadyexist = get_string('entryalreadyexist','glossary'); $entryexported = get_string('entryexported','glossary'); - $navigation = build_navigation('', $cm); print_header_simple(format_string($glossary->name), '', $navigation, '', '', true, '', navmenu($course, $cm)); @@ -98,5 +97,6 @@ print_simple_box_end(); } - print_footer(); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer(null,null, false,$glossary->is_lams); ?>