Skip to content

Commit

Permalink
MDL-35883 Accessibility: Added title for login as user link in header…
Browse files Browse the repository at this point in the history
… and footer for accessibility
  • Loading branch information
Rajesh Taneja committed Apr 2, 2013
1 parent 9c14f80 commit 819ad10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/outputrenderers.php
Expand Up @@ -533,7 +533,9 @@ public function login_info($withlinks = null) {
$realuser = session_get_realuser(); $realuser = session_get_realuser();
$fullname = fullname($realuser, true); $fullname = fullname($realuser, true);
if ($withlinks) { 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 { } else {
$realuserinfo = " [$fullname] "; $realuserinfo = " [$fullname] ";
} }
Expand Down

0 comments on commit 819ad10

Please sign in to comment.