MDL-18633 User: Fixed calls to html_writer on user/profile page.

This commit is contained in:
Damyon Wiese 2014-02-24 13:19:17 +08:00
parent 164ad1a30a
commit b80210fcd2
2 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ if (!isset($hiddenfields['lastaccess'])) {
if (has_capability('moodle/user:viewlastip', $usercontext) && !isset($hiddenfields['lastip'])) {
if ($user->lastip) {
$iplookupurl = new moodle_url('/iplookup/index.php', array('ip' => $user->lastip, 'user' => $USER->id));
$ipstring = html_writer($iplookupurl, $user->lastip);
$ipstring = html_writer::link($iplookupurl, $user->lastip);
} else {
$ipstring = get_string("none");
}

View File

@ -351,7 +351,7 @@ if (!isset($hiddenfields['suspended'])) {
if (has_capability('moodle/user:viewlastip', $usercontext) && !isset($hiddenfields['lastip'])) {
if ($user->lastip) {
$iplookupurl = new moodle_url('/iplookup/index.php', array('ip' => $user->lastip, 'user' => $USER->id));
$ipstring = html_writer($iplookupurl, $user->lastip);
$ipstring = html_writer::link($iplookupurl, $user->lastip);
} else {
$ipstring = get_string("none");
}