Permalink
Browse files

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

…er for accessibility

Conflicts:

	lib/outputrenderers.php
  • Loading branch information...
1 parent 5a2c3ec commit d82cef65c6637f81cd365ea7a0b7fea436b4bb90 @rajeshtaneja rajeshtaneja committed Apr 2, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/outputrenderers.php
View
3 lib/outputrenderers.php
@@ -544,7 +544,8 @@ public function login_info() {
$fullname = fullname($USER, true);
// Since Moodle 2.0 this link always goes to the public profile page (not the course profile page)
- $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>";
if (is_mnet_remote_user($USER) and $idprovider = $DB->get_record('mnet_host', array('id'=>$USER->mnethostid))) {
$username .= " from <a href=\"{$idprovider->wwwroot}\">{$idprovider->name}</a>";
}

0 comments on commit d82cef6

Please sign in to comment.