From: moodler Date: Tue, 4 Nov 2003 12:42:42 +0000 (+0000) Subject: Don't focus on the post message (upsets html editor) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3bbde5209918c59c6649d29e9da81715007ea95a;p=moodle.git Don't focus on the post message (upsets html editor) --- diff --git a/mod/forum/post.php b/mod/forum/post.php index 6c296141db..62ce936954 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -302,10 +302,10 @@ $toppost->subject = get_string("yournewtopic", "forum"); } - if ($post->subject) { - $formstart = "theform.message"; - } else { + if (empty($post->subject)) { $formstart = "theform.subject"; + } else { + $formstart = ""; } if ($post->parent) { @@ -332,7 +332,7 @@ if ($course->category) { print_header("$course->shortname: $discussion->name: $toppost->subject", "$course->fullname", "id>$course->shortname -> - $navmiddle -> $navtail", "$formstart", "", true, "", navmenu($course, $cm)); + $navmiddle -> $navtail", $formstart, "", true, "", navmenu($course, $cm)); } else { print_header("$course->shortname: $discussion->name: $toppost->subject", "$course->fullname", "$navmiddle -> $navtail", "$formstart", "", true, "", navmenu($course, $cm));