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

This commit is contained in:
Rajesh Taneja 2013-04-02 15:51:41 +08:00
parent c7fe9f81d7
commit fa84b9014b

View File

@ -563,7 +563,9 @@ class core_renderer extends renderer_base {
$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] ";
}