diff --git a/mod/forum/post.php b/mod/forum/post.php index a32de55b09de6..58e12b54f22fa 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -310,7 +310,7 @@ print_error("cannotdeletepost", "forum", forum_go_back_to("discuss.php?d=$post->discussion")); } - + if ($post->totalscore) { notice(get_string('couldnotdeleteratings', 'rating'), forum_go_back_to("discuss.php?d=$post->discussion")); @@ -813,7 +813,6 @@ $PAGE->set_title("$course->shortname: $strdiscussionname ".format_string($toppost->subject)); $PAGE->set_heading($course->fullname); -$PAGE->set_focuscontrol($mform_post->focus($forcefocus)); echo $OUTPUT->header();