MDL-35883 Accessibility: Added title for user link in header and footer for accessibility

This commit is contained in:
Rajesh Taneja 2013-04-02 15:32:38 +08:00
parent d8201d49d8
commit c7fe9f81d7

View file

@ -582,7 +582,8 @@ class core_renderer extends renderer_base {
$fullname = fullname($USER, true); $fullname = fullname($USER, true);
// Since Moodle 2.0 this link always goes to the public profile page (not the course profile page) // Since Moodle 2.0 this link always goes to the public profile page (not the course profile page)
if ($withlinks) { if ($withlinks) {
$username = "<a href=\"$CFG->wwwroot/user/profile.php?id=$USER->id\">$fullname</a>"; $linktitle = get_string('viewprofile');
$username = "<a href=\"$CFG->wwwroot/user/profile.php?id=$USER->id\" title=\"$linktitle\">$fullname</a>";
} else { } else {
$username = $fullname; $username = $fullname;
} }