Skip to content
Browse files

Merge branch 'MDL-30909-22' of git://github.com/FMCorz/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
2 parents d875f86 + 32bdbf9 commit 8e5440c9fc0627f23169580dd54d6b0be2269e63 @danpoltawski danpoltawski committed
Showing with 6 additions and 1 deletion.
  1. +1 −1 mod/forum/lib.php
  2. +5 −0 mod/forum/post.php
View
2 mod/forum/lib.php
@@ -3312,7 +3312,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
}
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']))) {
View
5 mod/forum/post.php
@@ -526,8 +526,10 @@
}
}
+$formheading = '';
if (!empty($parent)) {
$heading = get_string("yourreply", "forum");
+ $formheading = get_string('reply', 'forum');
} else {
if ($forum->type == 'qanda') {
$heading = get_string('yournewquestion', 'forum');
@@ -875,6 +877,9 @@
}
}
+if (!empty($formheading)) {
+ echo $OUTPUT->heading($formheading, 2, array('class' => 'accesshide'));
+}
$mform_post->display();
echo $OUTPUT->footer();

0 comments on commit 8e5440c

Please sign in to comment.
Something went wrong with that request. Please try again.