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

This commit is contained in:
Rajesh Taneja
2013-04-02 16:00:29 +08:00
parent fe33d24cab
commit 9c14f808ed
+2 -1
View File
@@ -552,7 +552,8 @@ class core_renderer extends renderer_base {
$fullname = fullname($USER, true);
// Since Moodle 2.0 this link always goes to the public profile page (not the course profile page)
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 {
$username = $fullname;
}