MDL-10115 User profile: Use title to aid in the ellipsis link being understood by screen readers

This commit is contained in:
John Okely
2014-06-24 15:38:15 +08:00
parent 8b05f3a355
commit 3e40c056e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ if (!isset($hiddenfields['mycourses'])) {
$shown++;
if (!$showallcourses && $shown == 20) {
$url = new moodle_url('/user/profile.php', array('id' => $user->id, 'showallcourses' => 1));
$courselisting .= html_writer::link($url, '...');
$courselisting .= html_writer::link($url, '...', array('title' => get_string('viewmore')));
break;
}
}
+1 -1
View File
@@ -341,7 +341,7 @@ if (!isset($hiddenfields['mycourses'])) {
$shown++;
if (!$showallcourses && $shown >= 20) {
$url = new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $courseid, 'showallcourses' => 1));
$courselisting .= html_writer::link($url, '...');
$courselisting .= html_writer::link($url, '...', array('title' => get_string('viewmore')));
break;
}
}