mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-18633 User: Fixed calls to html_writer on user/profile page.
This commit is contained in:
parent
164ad1a30a
commit
b80210fcd2
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user