diff --git a/user/profile.php b/user/profile.php index 8100f2c54d5..6750c66a715 100644 --- a/user/profile.php +++ b/user/profile.php @@ -297,9 +297,13 @@ if ($user->icq && !isset($hiddenfields['icqnumber'])) { } if ($user->skype && !isset($hiddenfields['skypeid'])) { - print_row(get_string('skypeid').':',''.s($user->skype). - ' '.get_string('status').''); + if (strpos($CFG->httpswwwroot, 'https:') === 0) { + // Bad luck, skype devs are lazy to set up SSL on their servers - see MDL-37233. + $statusicon = ''; + } else { + $statusicon = ' '.html_writer::empty_tag('img', array('src'=>'http://mystatus.skype.com/smallicon/'.urlencode($user->skype), 'alt'=>get_string('status'))); + } + print_row(get_string('skypeid').':',''.s($user->skype).$statusicon.''); } if ($user->yahoo && !isset($hiddenfields['yahooid'])) { print_row(get_string('yahooid').':', ''.s($user->yahoo)." yahoo)."&m=g&t=0\" alt=\"\">");