mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-35883 Accessibility: Added title for login as user link in header and footer for accessibility
This commit is contained in:
parent
c7fe9f81d7
commit
fa84b9014b
@ -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&sesskey=".sesskey()."\">$fullname</a>] ";
|
||||
$loginastitle = get_string('loginas');
|
||||
$realuserinfo = " [<a href=\"$CFG->wwwroot/course/loginas.php?id=$course->id&sesskey=".sesskey()."\"";
|
||||
$realuserinfo .= "title =\"".$loginastitle."\">$fullname</a>] ";
|
||||
} else {
|
||||
$realuserinfo = " [$fullname] ";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user