From: scyrma Date: Fri, 11 Apr 2008 06:58:20 +0000 (+0000) Subject: MDL-9410 - In user profile display, add http:// to web links if it's not already... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c18a3c1ffd9cb91bf8d4446c51ca3326c8d25b6e;p=moodle.git MDL-9410 - In user profile display, add http:// to web links if it's not already there (merge from 1.9) --- diff --git a/user/view.php b/user/view.php index 2b535032a8..c42633307f 100644 --- a/user/view.php +++ b/user/view.php @@ -296,7 +296,11 @@ } if ($user->url && !isset($hiddenfields['webpage'])) { - print_row(get_string("webpage").":", "url\">$user->url"); + $url = $user->url; + if (strpos($user->url, '://') === false) { + $url = 'http://'. $url; + } + print_row(get_string("webpage") .":", "$user->url"); } if ($user->icq && !isset($hiddenfields['icqnumber'])) {