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.2 -r1.3 --- temp_moodle_dev/moodle/mod/glossary/comment.php 27 Nov 2008 02:14:38 -0000 1.2 +++ temp_moodle_dev/moodle/mod/glossary/comment.php 10 Dec 2008 23:50:24 -0000 1.3 @@ -72,9 +72,12 @@ if (!$newcomment->id = insert_record('glossary_comments', $newcomment)) { error('Could not insert this new comment'); } else { + if($cm->is_lams==1){ + $next=1;//lams: variable we pass to the view page to tell it that there is a new entry + } add_to_log($course->id, 'glossary', 'add comment', "comments.php?id=$cm->id&eid=$entry->id", "$newcomment->id", $cm->id); } - redirect("comments.php?id=$cm->id&eid=$entry->id"); + redirect("comments.php?id=$cm->id&eid=$entry->id&next=$next"); } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'add');