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.3 -r1.4 --- temp_moodle_dev/moodle/mod/glossary/comment.php 10 Dec 2008 23:50:24 -0000 1.3 +++ temp_moodle_dev/moodle/mod/glossary/comment.php 28 Oct 2009 07:32:01 -0000 1.4 @@ -72,18 +72,18 @@ 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 - } + 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&next=$next"); + redirect("comments.php?id=$cm->id&eid=$entry->id&next=$next"); } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'add'); $mform->display(); - //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); + //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; } } @@ -137,8 +137,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'); - //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); + //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; } } @@ -203,8 +203,8 @@ } else { glossary_comment_print_header($course, $cm, $glossary, $entry, 'edit'); $mform->display(); - //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); + //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; } } @@ -233,12 +233,11 @@ $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 + + //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),false,'',false,$cm->is_lams); - - + 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); }