Commit c18a3c1f authored by scyrma's avatar scyrma
Browse files

MDL-9410 - In user profile display, add http:// to web links if it's not...

MDL-9410 - In user profile display, add http:// to web links if it's not already there (merge from 1.9)
parent 0a013367
......@@ -296,7 +296,11 @@
}
if ($user->url && !isset($hiddenfields['webpage'])) {
print_row(get_string("webpage").":", "<a href=\"$user->url\">$user->url</a>");
$url = $user->url;
if (strpos($user->url, '://') === false) {
$url = 'http://'. $url;
}
print_row(get_string("webpage") .":", "<a href=\"$url\">$user->url</a>");
}
if ($user->icq && !isset($hiddenfields['icqnumber'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment