Permalink
Browse files

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

…not already there
  • Loading branch information...
scyrma
scyrma committed Apr 11, 2008
1 parent 388370b commit a2ae4ee63b32760b9556252565637f74c1f2739c
Showing with 5 additions and 1 deletion.
  1. +5 −1 user/view.php
View
@@ -277,7 +277,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'])) {

0 comments on commit a2ae4ee

Please sign in to comment.