Permalink
Browse files

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

…dle into MOODLE_24_STABLE
  • Loading branch information...
2 parents 3a44f70 + 819ad10 commit eda9f7bd436abb4df21cebeb702d5b3c1a26d1bf @danpoltawski danpoltawski committed Apr 10, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 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] ";
}
@@ -552,7 +554,8 @@ public function login_info($withlinks = null) {
$fullname = fullname($USER, true);
// Since Moodle 2.0 this link always goes to the public profile page (not the course profile page)
if ($withlinks) {
- $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>";
} else {
$username = $fullname;
}

0 comments on commit eda9f7b

Please sign in to comment.