}
if ($reply) {
- $commands[] = array('url'=>new moodle_url('/mod/forum/post.php', array('reply'=>$post->id)), 'text'=>$str->reply);
+ $commands[] = array('url'=>new moodle_url('/mod/forum/post.php#mform1', array('reply'=>$post->id)), 'text'=>$str->reply);
}
if ($CFG->enableportfolios && ($cm->cache->caps['mod/forum:exportpost'] || ($ownpost && $cm->cache->caps['mod/forum:exportownpost']))) {
unset($data);
}
+$formheading = '';
if (!empty($parent)) {
$heading = get_string("yourreply", "forum");
+ $formheading = get_string('reply', 'forum');
} else {
if ($forum->type == 'qanda') {
$heading = get_string('yournewquestion', 'forum');
}
}
+if (!empty($formheading)) {
+ echo $OUTPUT->heading($formheading, 2, array('class' => 'accesshide'));
+}
$mform_post->display();
echo $OUTPUT->footer();