Permalink
Browse files

MDL-35883 Accessibility: Added title for login as user link in header…

… and footer for accessibility
  • Loading branch information...
1 parent 9c14f80 commit 819ad10fa310b8a5b64189c97aed4f4086c44130 Rajesh Taneja committed Apr 2, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/outputrenderers.php
View
@@ -533,7 +533,9 @@ public function login_info($withlinks = null) {
$realuser = session_get_realuser();
$fullname = fullname($realuser, true);
if ($withlinks) {
- $realuserinfo = " [<a href=\"$CFG->wwwroot/course/loginas.php?id=$course->id&amp;sesskey=".sesskey()."\">$fullname</a>] ";
+ $loginastitle = get_string('loginas');
+ $realuserinfo = " [<a href=\"$CFG->wwwroot/course/loginas.php?id=$course->id&amp;sesskey=".sesskey()."\"";
+ $realuserinfo .= "title =\"".$loginastitle."\">$fullname</a>] ";
} else {
$realuserinfo = " [$fullname] ";
}

0 comments on commit 819ad10

Please sign in to comment.