Browse files

Merge branch 'wip-mdl-35883-m23' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 7d042f6 + 8cea78f commit c01f9e8bc103cc047c9f3f7e9380786750bdcb5a @danpoltawski danpoltawski committed Apr 10, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/outputrenderers.php
View
7 lib/outputrenderers.php
@@ -529,7 +529,9 @@ public function login_info() {
if (session_is_loggedinas()) {
$realuser = session_get_realuser();
$fullname = fullname($realuser, true);
- $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 = '';
}
@@ -544,7 +546,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 c01f9e8

Please sign in to comment.