Permalink
Browse files

MDL-35883 Accessibility: Added title for user link in header and foot…

…er for accessibility
  • Loading branch information...
1 parent d8201d4 commit c7fe9f81d7910cf6ec33e86340ceb5906a63debc Rajesh Taneja committed Apr 2, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/outputrenderers.php
View
@@ -582,7 +582,8 @@ public function login_info($withlinks = null) {
$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;
}

0 comments on commit c7fe9f8

Please sign in to comment.