Permalink
Browse files

MDL-30909 Accessibility: Improved access to reply form in forums

  • Loading branch information...
1 parent 32efb09 commit 6d3249780b401d7864ba61b57f55b4290f811e69 @FMCorz FMCorz committed Sep 6, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 mod/forum/lib.php
  2. +5 −0 mod/forum/post.php
View
@@ -3344,7 +3344,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
@@ -528,8 +528,10 @@
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');
@@ -883,6 +885,9 @@
}
}
+if (!empty($formheading)) {
+ echo $OUTPUT->heading($formheading, 2, array('class' => 'accesshide'));
+}
$mform_post->display();
echo $OUTPUT->footer();

0 comments on commit 6d32497

Please sign in to comment.